Why did my friend suddenly become mean?

A few weeks ago we were pretty close, we use to talk a lot and stream videos together and watch it. Now when we play games together or talk he started calling me dumb and stupid. Which hurt a lot. Then started being very cold towards me, started hanging around other people. Yesterday he stated "why do I bother hanging out with you" and "you are weird" etc. I felt like he just didn't like me at all, and then started saying he really enjoys hanging out with X and Y and explained they have the same sense of humour.

Im not the jealous type but I can see what his doing, and it annoys me. I started playing games with a different friend group and he noticed, and stated if I was playing by myself or others. I said with others (cause the game was a horror and I am terrified to play by myself).

I have confronted him about the situation, asked if there was anything wrong or if I had done anything to upset him. He said no and we are fine, but still treats me in a mean way.

I do not get it but I have been spending less time with him for these reasons

Why did my friend suddenly become mean?
Post Opinion