I think I may understand why she lashed out on your friend and stormed out of his apartment.
I once had an encounter with a female friend many years ago. One semester as a student, I lost my apartment due to financial issues and she offered I stay with her for a couple of weeks till my money comes through.
One night, having an heartfelt conversation turned into making out. And she tried to take off my clothes. But because I was with someone at the time, I couldn’t do anything with her.
She became sad and I had to console her that it wasn’t anything. And it’s absolutely normal. And I thought everything was fine.
But two days later, she changed. She kicked me out of the house and kept sending insulting texts.
I couldn’t understand what I did wrong.
Until later as I grew up.
I think what happened with your friend was him refusing to give the girl what she came for. Which possibly, was sex. That’s why she turned on him.