Why are earthworms said to be a gardeners best friend?

Earthworms enrich the soil with their waste, providing it with much needed nutrients.