Why can a guy act like a total jerk after you hooked up?

I hooked up with my crush who always said I'm a friend and introduced everyone to me as his friend, after we hooked up its like he does not want to see me ever again. I showed up and surprised him at a bar and he was nice but I could tell he did not want to see me. Now he's acting shady and ghosting me. but I've been super nice to him. Why do some guys act like a jerk after a hookup?
Why can a guy act like a total jerk after you hooked up?
Post Opinion