I've had dogs who ate grass occasionaly, but never dirt. I have no idea
why they would eat dirt, but my quess is a mineral deficiency. I'd check
them for parasites too. There's a good channce of picking up worms from
the soil.