Well, there are many different reasons why people are rude and mean to others. One reason could be because they are trying to get attention. Another reason could be that they are bullying others so people will think they're cool so they can have a lot of friends.
Another reason which I hate, is that some people just see joy in making other people mad. It's not the right thing to do, but people do it anyway. And we all do it sometimes.