It's a ventilation and safety thing.
Ventilation? Why not use fans?
Ease of maintenance? If ease of maintenance instead of user experience were the driving factor in software development, we would all still be using command-line applications exclusively. Shouldn't the "user experience" be the driving factor in bathroom design too?
Safety and security? Even toilet stalls have locks. Does anyone NOT lock their stall while using it?