Why are hedgehogs pests?

Hedgehogs are typically considered pests because they love to eat peoples' gardens.