I remember when I was a very young child - more than half a century ago - getting into trouble for eating dirt. I was amused more recently to hear about my nephew doing the same thing. It seems, from my point of view, to be instinctive. I wonder why?
Family ancestors in very rural Texas used to drink “sour dirt” which was a tablespoon or two of dirt mixed with water. Intermediate generation did gather some from their favored spot and have it tested. Several essential minerals in it. Go figure.