Animals eat different things. Every kid knows about herbivores vs. carnivores. Strangely, the other type of diet variation—diet breadth—is much less generally known. Generalists have broad diets, being able to eat a wide variety of things, while specialists eat only a few types of items. Anteaters and hummingbirds are specialists; the seagull who flew off with your lunch is a generalist.
Being a generalist gives a species a lot of advantages, especially in unpredictable environments. The more you can eat, the less likely you are to run out of food. An anteater without ants will starve, but a seagull without fish can eat crabs, or carrion, or Cheetos.