Around here in the U.S., we are
routinely portrayed as enemies of women. Rapists, murderers, molesters, all of that stuff. We have a cable TV network that thrives on those kinds of stories, and it's a "women's channel".
Therefore, if a strange man -- or even a casual acquaintance -- tries to enter a bathroom that's already occupied by a woman, then "surely" he must have sex (or possibly even violent sexual abuse) on his mind.
At least that's how the stereotypes and prejudices say it is.