It's a genetic problem, and when it's triggered, it's by exposure to whatever they're allergic to.
The most common allergens are beef, dairy, wheat, egg, chicken, lamb, soy, pork, rabbit, and fish.
And, most dogs are usually allergic to more than one thing.