He probably followed her in close behind her. It was a basement apartment. He managed to get in with no signs of forced entry.
I’ve had crazies try that with me. You must always be aware of who is behind you. Never enter the hallway or apt from the street - stay where you are. If they are going to murder you, make them do it the street was always my attitude. Killers prefer privacy, generally.