They eat the dirt and compost in the ground.
by eating the soil
they optain their foos from their pours. or they optain the moisture from the dirt to their pours cuz they have no mouths.
Eat absorbs the earth/plants or whatever through its' skin.
The way earthworm get into food and the only reason i think earthworms would be in food is from when an animal becomes infected with earthworms like cows for example eat grass with earthworm egg on...
They get it from inside the ground they eat decaying leaves but only decaying plant matter in the the soil
Waste Management Using Earthworms
Video Game Classics: Earthworm Jim
Worms Used for Eco-Waste
Gameloft's Windows Phone 7 Games Trailer