Originally Posted by
psychephylax
Pardon my ignorance but why lock the door to the bathroom in a hotel room when you're traveling by yourself?

Your making an assumption that the OP meant to lock the door. It is possible that the "malfunction" was the door locking itself. But does it really matter? In any case, I would think that there is an expectation that the door lock with function correctly.