Just about ALL schools ban homemade treats, but when that occurred back in the 80s, it had more to do with AIDS than allergies. I vaguely remember when you could bring homemade, then the next year it was banned.
I never heard of it having anything to do with AIDS. It was always just a more general hygiene thing.