The way I heard it, the room was locked from the inside - they found the body when they forced the door.
Doors that are locked from the inside generally allow the door to be opened from the inside, and once the occupant leaves, the door closes and remains locked.
It has to be that way because of potential lawsuits.