The lavatory door can be easily opened from outside
There’s a special switch on the door that’s hidden under the “No smoking“ or ”Lavatory" sign. This is made, of course, not to infringe on the privacy of passengers but to avoid breaking the door if someone feels sick inside.