As I understand it, works don't really eat "dirt". They eat partially decayed plant and animal matter in the soil. The stuff they eat just looks like dirt to the naked eye. Earthworm casting is really decaying plant and animal matter that is partially digested.