Guy friend met my bf

I have a couple of guy friends we hang out as a group with my cousins(also guys)

When one of them met my bf he said out loud to my cousin Monica “I’m more attractive than him” lol why would someone say that

I confronted him laughing that he said that though. I take no offense because I think he is great the way he is :)