Still better than a light sensor in a communal bathroom... outside of the stalls. That's how it is at my workplace. If I spend a bit too long pooping, and nobody else comes in to poop at the same time, I end up in the dark. Then when I have to wipe, I have to either risk opening the stall door and wave into the room, with my dirty ass hanging out, hoping nobody happens to enter the bathroom at that time, or wait patiently for someone to come in and reactivate the light. Makes me wonder how blind people check their wiping: do they go on flavor or smell?
Oh, is that not a thing some places? I think the majority are outside here in the UK, generally electricals are not allowed inside the bathroom (although I'm not sure this actually covers light switches as I'm sure some of them are in there...)
I think it's against electrical code. You can have a pull string because the wires are on the ceiling which carries the same risk of getting water in it as the light itself that is also on the ceiling. A wall switch would be lower on the wall and has the risk of wet handed people coming directly in contact with it
Sometimes you'll see those "shavers only" sockets in bathrooms, which are different from your typical wall outlets in that they have a GCFI (also called RCD), and/or a built in fuse to limit current, and have a floating ground.
The light switch and light is likely tied to a "live loop" system which runs 230V, and has a 5 or 6 amp non-GCFI breaker on it. That is considerably more dangerous for a wet human to come in contact with.
In the US, it's extremely rare to have a light switch outside if yhe room with the light. Usually there's a lights witch and a couple sockets in the bathroom by the mirror.