Why do moths eat feces?

Some moths eat feces because they are able to glean nutrients it. They can also eat decomposing plant and animal matter.