Why would a guy say he hates you?

I've had this guy friend and we were kinda close. And then one day he told someone that he hates me, the person he told that to ( she is one of my close friends so) asked why and he said he just does.
The thing is that we were real good friends, we spoke and we texted. He always kept the conversation going and i though he cared about me.
Why are you guys complicated?
Please help
Why would a guy say he hates you?
Post Opinion