My understanding (which may be false) is that this can come about from competing design considerations and regulations. Like… It’s ideal to be able to push the door open from the inside of the bathroom so you don’t have to touch a nasty doorhandle, but you also don’t want somebody to be able to put something in front of the door, potentially trapping you in the bathroom (particularly in the event of a fire… Dying in a fire is probably worse than touching a nasty doorhandle), and you also don’t want doors to unexpectedly swing open into busy hallways. This drives me nuts too, though.
My understanding (which may be false) is that this can come about from competing design considerations and regulations. Like… It’s ideal to be able to push the door open from the inside of the bathroom so you don’t have to touch a nasty doorhandle, but you also don’t want somebody to be able to put something in front of the door, potentially trapping you in the bathroom (particularly in the event of a fire… Dying in a fire is probably worse than touching a nasty doorhandle), and you also don’t want doors to unexpectedly swing open into busy hallways. This drives me nuts too, though.
In some restaurants I’ve seen double swing doors on the toilet entrance.