One function of the immune system is to defend against infections by recognizing foreign proteins, but it should not overreact to food proteins.
A key aspect of the immune system is its ability to counteract pathogens by recognizing non-self proteins, yet it must avoid mistakenly targeting harmless food proteins.