Because when you’re living with someone and you think there’s an intruder in your mutual home, you always shoot through the closed bathroom door without first making sure its not your girlfriend on the other side that you’re filling full of lead.
He knew she was in there. He was having a temper tantrum and trying to scare her. Didn’t expect to kill her but didn’t care if he did kill her. He is an ugly character.