If one gathered a list of all ingredients to which there are common allergies and then banned those ingredients from commercial aviation, e.g. airports and aircraft, it would be a long list and there would be many passengers quite unhappy.
People who suffer from severe allergies should never eat anything served on a commercial aircraft. Even if the item itself does not contain an offending ingredient, there is no suggestion that the items are not exposed to such ingredients.