Why are herbivores important to the ecosystem?

Without herbivores there would be less for the carnivores to eat.