Well, yes! This is fairly obvious and I don't think in question, given that it's, well, the whole premise of... everything.
What's in question is how to describe the tone and purpose of the question.
I'd agree with PPs that neither of the below definitions appear to fit - unless you see a direct question as indirect and being a man as a bad thing (insinuation), or the same question as an unambiguous allegation of "guilt" as opposed to equally likely to be a neutral observation of an innocent mistake (more likely).
I've posted a few times in recent days on black and white thinking, and this is more of the same. "Asking this question = negative". No, it's more complex. Insinuation, accusation and warning observation = identical. No, of course not.
The aim (or at least the assumption) of this line of argument seems to be that there was no way the cleaner could ask this question without herself being morally wrong or even, in some way, abusive. And this feels inconsistent. As PP have pointed out, as long as single sex toilets exist (even if you believe they should include transwomen), it has to remain possible to ask this question to protect those using them. Obviously.
An insinuation is an indirect, subtle, and often negative or insulting suggestion that something unpleasant or true is the case, without stating it plainly. 1, 2, 3]
An accusation is a claim, statement, or charge asserting that someone has done something wrong, illegal, immoral, or harmful. It represents an allegation of guilt rather than a proven fact. 1, 2, 3, 4]