Doors in Bathrooms

One of the oddest things that I noticed about Germany was the number of doors I had to fight my way through to get to a toilet. Every (semi-)public toilet that I visited had at least two doors between me and a urinal, and three for a real toilet, irrespective of how inaccessible the bathroom was. In most places I’ve visited, the gents tends to have one door on the outside and some well-placed walls or corners to guard the sanctity of its urinals. It struck me as somewhat odd when I noticed it in the first German bathroom I visited, but every subsequent urinal I found had this same sequence of doors protecting it from the world. Is there a reason for the large number of doors in Germany? Is this common in other places? Please do share.