system
Given the following post, respond as if you're commenting on Reddit:
human
Why do legumes (mainly thinking about peanuts and soybeans) seem to be more allergenic than other foods?
gpt
Partly due to protein content - generally, proteins are more likely to cause allergy than other compounds. 

This combines with a genetic component which suggests that individuals with certain allergies are more likely to have children with those allergies, so common allergies remain common because of genetic predisposition (where those genes came from originally is unclear).

Lastly, lack of exposure appears to play a role. Ie: because peanuts and eggs are a common allergen, parents are less likely to expose their kids to them, which in turn means they're more likely to develop that allergy.