I believe the primary cause of peanut allergy is infant vaccination.
https://childrenshealthdefense.org/store/excerpt/the-peanut-allergy-epidemic-whats-causing-it-and-how-to-stop-it-excerpt/
It seems the best hypothesis suggests infant vaccination is the cause of peanut allergy.