Why would a close male friend suddenly cut you out of his life and be hurtful?

I've known this guy for 16 years and we've always been close. He took me around his city to check off every item on my bucket list, always hit me up when he was home to get dinner and drinks, never missed texting me on holidays or my birthday, and we just always had a good time together. He came home at Christmas and invited me to come stay with him for a weekend again. The last time I did that he made passes, smacking my as*, feeling up my legs, wanting me to sleep in bed with him, etc. I brought this up and was honest that it made me uncomfortable. He apologized and then got really weird. He said he was embarrassed and ashamed, then ended the friendship the next day. Then he reached out a week later and for 2 weeks all was fine. Then he ended it again, repeating that he can't rekindle a friendship or be the friend I deserve. Our friendship was never lost so it didn't make sense. Then he said our friendship never meant anything to him and the last 10 years of it were bad, which isn't even true. Then he said I have remnants of romantic feelings in my rose tinted view of our friendship. Also not true, and I'm not the one who made passes. I'm just super confused and really hurt and upset. Why would he suddenly change like this? Why does he hate me now?

Why would a close male friend suddenly cut you out of his life and be hurtful?
Post Opinion