I interpret the ban on nuts and not on P-B etc. as a choking preventative not an allergy issue as the prevalence of peanut allergy is considerably greater than that of tree nuts. The two are unrelated BTW as peanuts are legumes, more akin to peas and lentils than to tree nut.
It seems that someone at the school is not clear in their understanding of food allergies.