Why Is Swearing Not Allowed In School?

Is swearing in school illegal?

.