How do anteaters depend on soil for survival?

because the ants live in the dirt and without the dirt the ants would not be alive nor would the anteaters