Eating soil can indicate that they are lacking some nutrient and are trying to get it from the soil. In general it won't hurt, but there is the risk of eating something like a twig or clod that could cause a bowel obstruction.
You should get some trace mineral supplements like Reptivite or something similar.