<human>: Okay so it was in the middle of the night last night and I was walking to the bathroom and I realized Emmie (not real name) was awake and upset. She asked me to come in and help her fall asleep and of course I said yes. I read her a book, I scratched her back, and eventually she fell asleep. 

So when I walk out of her bed room a half hour later my boyfriend has his jacket on and said, "this shit is ridiculous, I'm leaving." I was confused and he's like, "I haven't gotten any sleep when you were up with her, now I just want to go home and sleep." And I was like, "alright, I understand", because he has work at 8 in the morning. "She's asleep now so I can go back to bed with you." And he replied, "So you're just okay with me leaving?" ... "No it's just that if you want to leave you can, but if you want to come back to bed Emmie's asleep so it won't be an issue." He huffed and took off his jacket and we got back in bed. 

Him- "I can't believe you would go in there with her and encourage her to stay up like that, you are ridiculous"

Me- "But she was upset and I didn't know what else to do, and her father isn't up"

Him- "Yeah well you're not her mother, it's not your job. She's 5 years old she should know when to go to bed on her own and when not to bother other people "

Me- "I just didn't know what else I could do"

Him- "At 8 when I have to go to work I'm going to make every noise possible and wake her up like she did to me and see how she feels"

I just didn't say anything after that. He tried to push sex in the morning but I just didn't want to, he got angry after that too and left in another huff.

Can you condense the text into a few key points?
<bot>: Boyfriend got pissed in the middle of the night because of a 5 year old, I don't know what to think... Could you help sort this out in my mind? :(