That depends on what you mean by mean...
If you're asking why someone's grumpy or short with you: it's proabably beacuse they're tired from dealing with stupid people.
If you're asking why the other kids are picking on you: there could be a lot of reasons, they might have low self-esteme, they might be insecure, they might be being abused at home, they might be stupid, they might just like the way you react.
If you're talking about Trolls: It's probably because they like to watch you try and fight back against pesudo-logic.
If you're talking about the random ******* that tried to pick a fight with you on the street: He's either insecure, insane, or has got no soul... maybe all three.