Well yes it could but then you look at the number and profile of customers when assessing the level of risk.
A high traffic area with a huge mix of ages and is going to present a higher risk of an issue than a quaint cafe frequented by old couples that have have only just bought their first iPhone and wouldn’t have the first idea (or desire) how to get hold of a micro camera and install it.
Im not saying that ALL ageing couples either limited technology expertise are safe but the likelihood is far higher than with other groups.
Thats how we operate in society, we can’t eliminate all risks but we need to take reasonable steps to minimise them where possible.
Unisex toilets are less safe in a number of ways. 11% of hearts attacks happen in a public space and people often head to the toilets when unwell. Other medical issues as uh as fits, strokes etc. If a seriously unwell person is in an enclosed room and collapses, they are far less likely to be discovered until it us too late. A lady died in those circumstances just recently.
There is also a greater risk of being pushed into a unisex room and attacked by a man - this has happened a number of times - a n man raped a woman in a nightclub not so long ago and other women have reported being violently attacked. Once you are locked in, it’s harder to escape.
Single sex (properly enforced) cubicles are the safest, and generally most desirable toilets.
Some people have no boundaries of privacy from the opposite sex, airily promote unisex toilets and sadly teach their children to have no boundaries. That only benefits one type of man.