I once stayed in a hotel in the rural Philippines that had a communal bathroom down the hall. If you missed the door and walked too far you were outside in a chicken coop. Actually I thought it was kinda cool...
There are old hotels in the US still like that, with communal bathrooms.
Many in San Francisco.
This was common in the late 19th-early 20th century.