I guess there was an incident a few years ago where I work. Some creepy guy was hanging out in the womens' washroom. We now have keypads on all bathrooms directly accessible from the elevators.
Most decent people in the world often don't understand measures again the indecent. (For instance the reason for the locks had to be explained to me.)