The problem is that school-kids are forced into repeated, unsupervised interactions where they are often deliberately and persistently targeted by aggressors.
Out of curiosity, what purpose does sarcasm serve you? What do you get out of sarcastic interactions?
"Ha ha, only serious". Gentle mockery can be a non-threatening way of expressing grievances and telling people difficult truths. A joke can be a very useful way of letting someone know that they're annoying us, that their work isn't up to par or that their haircut is unflattering. It's why the British excel at it - we're not very good at blunt truths, so we tend to make a joke of things.
A classic example might be the British way of greeting someone who is late - a gently sarcastic "nice of you to join us". It gets the message across without being a direct admonishment. Most of us would be unwilling to directly criticise a colleague for slacking, but we'd find it far easier to sarcastically remark "you must be rushed off your feet".
Nobody wants to be surrounded by relentlessly negative people, but uncritical cheerleaders can be just as harmful. Sometimes we need to be told things that we don't want to hear, lest we turn into vainglorious prima donnas, drifting through life with a total obliviousness to our obvious shortcomings. Sarcasm, irony and gentle mockery can make that bitter pill a little easier to swallow.
Sarcasm turns factual debate about performance into personal attack - and people have full right to respond in kind.
The point made above is that sarcasm can be a way of communicating what you want (eg, "you're late") without what you don't want ("you should be ashamed/feel bad/apologize/etc"). This unwanted implicit communication is common in blunt statements of fact and is part of why that communication style is often described using words like blunt or harsh.
In this sense, sarcasm and similar serve the opposite role to the one you describe: a way of jokingly or obliquely raising criticism without demanding a direct response. Of course, those criticisms can be personal-- but that's a property of criticism, not of its style of delivery.
Yes, there must be a balance. But sarcasm and negativity are part of our everyday life as adults and we should learn how to handle them.