Everybody likes attention because everyone feels like he has something valuable to share. Even shy and introverted people enjoy attention in their own way. One can attract negative attention or positive attention.
Positive attention is much more difficult because it requires patience, as it’s a product of a long-term effort that goes along with building one’s character. To accrue positive attention, first of all, you have to do nothing to attract attention. Especially when you see an opening to do something but that little voice tells you that this isn’t the right moment to get attention because it’d be negative attention. So you do and say nothing for much of the time except at the right time when you do or say the exact right thing. Comes with practice.
Some people weren’t told at age ten that no-attention is better than negative attention. So as boys, they saw that it’s easy to get attention by doing things that make a moment uncomfortable, make people stop and wonder if there is something wrong with you, but it’s still attention. So they develop a lifelong habit of drawing negative attention to themselves. The result over decades is that other people avoid them.