On the other hand, avoiding peanut exposure can cause an increase in allergies, so there's a feedback loop at play.
The children who now have allergies, but wouldn't with past exposure levels, are more inconvenienced than the kid who can't eat a peanut butter sandwich at school.
Attempting to make life better for all has unexpected twists and turns
The question is whether children who are already in school are likely to develop an allergy due to lack of exposure at that point in their lives. If the answer is no, the only downside is parents having to make a different sandwich for lunch.
I'm allergic to peanuts and none of my schools banned peanuts. When I was in elementary school, another kid chased me around with a peanut butter sandwich for a couple of minutes before the teachers were able to stop them. I'm not saying this will happen to all kids, but the options for bullying get kinda scary when an everyday food can kill you. Kids at that age may not understand how serious allergies can be, so there's also the more mundane risk of a child with an allergy trying somebody else's food without knowing it contains allergens.
Later on in middle school there was a single peanut-free table, where kids were eating peanut butter sandwiches for lunch every day before I arrived. Fortunately they were willing to bring something else once I told them I actually needed the peanut-free table to be peanut-free.
However since we're currently seeing that allergies are treated by exposure, by removing these from canteens we are strengthening everyone's allergies for the sake of the few. In essence these few unlucky ones, including those who don't want to take the risk, are making us all more ill in the long run.
Depends how emphatic you are to your fellow human being. Peanuts aren't as important in most people's lives as actual people.