Answer for Stranger in the HotelBack to Stranger in the Hotel
Back to Mind Stretchers!
She reasoned that if it had really been his room he would not have knocked at the door, but used his key. (She was in a corridor of single rooms, so it was unlikely he was sharing.) She reasoned he knocked in order to check whether anyone was in before breaking into the room.