No idea how things work in Europe, but over here if a teacher or school wants to ban (or heck, even allow: see “banned” books) something — even if it’s for good reasons, the loudest local parents that disagree will show up to school board meetings screaming at them, and challenge them at the next election. Perhaps the local officials would rather have the cover of a law than look like they’re being capricious.