If you mean a food allergy, it is because the immune system reacts in a certain way and tries to dispose of the contents in the food by attacking it.
8.7m questions
11.3m answers