> It's because the animals need to eat (surprise surprise) vegetables!
Not exactly. In pastoral agriculture, animals eat grasses that humans cannot, on land that is not easily farmable (infertile, rocky, hilly, etc). A nice side effect of this is that the animals make the land more farmable by fertilizing it with their poops.