i figured he unlocked the door. think...usually when a door has a lock the lock is on the inside of the room so the person inside the room can lock it and not have to ask somebody else to lock and unlock it for them. the lock is inside the room, the person is inside the room, the person unlocks it and comes out!
just a theory