When you were done, you'd leave through the door, which would lock behind you, and then for a minute or two, it would go through a self-cleaning cycle, making itself (putatively) spotless for the next customer.
They even had the same idea scaled up to entire motels. Near Lyon, I needed to catch 3 hours of zzz's before going to the airport. I found a motel called "Formule 1". It was a seemingly automated motel. You hardly ever saw an employee.
To park your car, you slid your credit card through a card reader at the parking lot gate, and it charged you $20 or so. You would be given a receipt with a combination number for the front door and for your room.
The bathrooms were down the hall from your room. They were somewhat similar to the fancy porto-poties. Though they also had showers in them. The shower was on a timer. When you left the bathroom, the door would lock behind you for a while, as it would go through its cleaning cycle.
France is strange!