Whenever one of these stories come up, we find there is a side missing. In this case, it's a school, so for safeguarding reasons they're not going to say anything at all about the children. Quite often "arrested for saying X" turns out to be "arrested for a lengthy campaign of targeted harrasment, culminating in X"
It sounds like there was harrasment involved, but it is scant on details.