It's also possible for things which do have genetic components to _also_ have environmental triggers, so its not impossible that, for example, identical twins who happened to get different levels of exposure to peanuts in their first year of life based on random luck of which family member ate peanuts near them at which times, or something like that, could lead to different outcomes even if genetics were the reason that both twins were at risk of developing such an allergy.