Why is she mad at me?

I was introduced to this girl last year. We had instant chemistry, we both had gotten out of toxic relationships within the last 6 months, we even went to high school together.
She lived about an hour away from me for school, but we texted all day, everyday for over a month. She kept saying how she wished I was there with her, and I'd offer to come to see her after I was done with work but she also had night classes.
During her break, we went out and she called the date short and she explained she wasn't fully over her ex and felt terrible because she really liked me. She sounded like she was gonna cry. I gave her a kiss on the cheek and said I understood and I'd be there for her.
Over the next two months, she vented about her ex and treated me like shit. I got to the point where I'd wait and dread to respond to her. After I checked in on how her day was, she snapped at me for some random reason and said she didn't have anything to say and didn't know how long she'd feel that way.
At this point, I gave up and removed her from my social media, and deleted her number. But she never contacted me.
It's been roughly 5 months and I happened to run into her at a store and she slapped me and walked away really red.

Why is she mad at me? She kept pushing me away for months and I eventually went along my way. Why is she mad at me when she was being dumb?
Why is she mad at me?
Post Opinion