@massiveblob
Those saying the child is at risk whilst getting changed in a cubicle. This is what happens at school swim lessons when male teachers and staff are present also. I don't know how you eliminate it. At age 8/9/10 my DD would not have expected me to lurk right outside her cubicle. (I'd be getting changed in my own one).
By 9 most pools allow them to swim alone if competent.
What age would you deem safe? Or never?
It's a tough one. I would be surprised if male swim teachers at schools are allowed in a shared sex change area. If they are I wouldn't be super comfortable with that, but it strikes me as lower risk, as it would be just one man, rather than multiple allowed in that space, and there would be numerous girls there, all of who know each other and know the swim coach, so there would be more of a sense of being watched.
As for what age is ok in communal swimming change spaces....this is obviously a sliding scale. I do feel age 8-10 is possibly the most delicate age, as girls and boys are independent enough to dress on their own, so may be left alone from a practical point of view.... yet they are often prepubescent/ just beginning to develop, but not fully absorbed senses of privacy/ appropriateness/ developed a radar for who is around them/ have the wisdom to suspect/ critically consider adults' approaches to them (Eg questioning whether to open a cubicle door if an adult asks)....
Younger, it is obvious they need supervision. And older - say 11+ they are a bit more mature to understand risks, to be able to talk through and retain basic guidance around protecting their privacy and personal space, more natural questioning of adults, more cemented friendships to look out for each other and know if something inappropriate is happening.
These things are all multiple sliding scales of risks, and also knowing your own child. There is also a sliding scale of how much you monitor. I'm not saying at 9, you need to be literally standing guard at the cubicle door- but changing in next cubicle, or making sure you know where she is, staying in the shared area and calling to check all ok/ being within sight line etc feels appropriate... another year older, if she is with a girl friend whose maturity I trust, after a couple of instructions to stay close to each other, I might sit outside the room and pop in once to check all ok. Another year or two, I'd probably be fine with the cafe option.