Why does he like me but make fun of my looks?

hii guys! This guy I've known has liked me for a while, and would always try to talk to me. Safe to say I did like him back for a while, untill randomly he started calling me fat or make fun of my face after just being nice to me? Iv'e noticed this happens when i dont give him enough attention or when some other male is talking to me harmlessly. If he likes me, why is he treating me so poorly. He tries to single me out of conversations sometimes to make himself look cool infront of his friends too, but then gets mad at his friends for laughing with me. what a weird guy. anyways :( help a fellow human out

Why does he like me but make fun of my looks?
Post Opinion