Who knows what this kid was thinking - or his friends that instigated the hazing. They probably thought 'allergy' meant sneezing, itchy, hives, common hayfever symptoms, rather than a potential for anaphylaxis (as with a lot of food allergies).
Just as a note, anaphylactic reactions are bloody terrifying. I've had two - one when I was 9 and another when I was 21 (from two different allergens). It happens fast and if it's not sorted straight away by an epi-pen or going to hospital or both, then the person is pretty much screwed.
So as funny as the title sounds, it's really not something to be flippant about. I hope the boy got suspended, or given loads of detentions, and his parents given a good jolt into reality about the kind of child they're raising (misguided or miscreant, however you want to look at it

).