There are many reasons why dogs like to eat human feces, mainly divided into medical reasons or behavioral reasons.
Medical causes include trace element deficiencies, pancreatic insufficiency, intestinal malabsorption, and gastrointestinal parasites.
Dogs who eat only dry food are more likely to develop coprophagia as a way to compensate for chronic enzyme deficiencies by replenishing deficient trace elements.
Causes of the behavior include anxiety, stress and when food is scarce, and some dogs even learn to eat poop from other dogs.