Working in the poop business, I get asked all the time why dogs eat poop?  How do I stop my dog from eating poop?  There can be a multitude of reasons why a dog will eat poop.  The American Kennel Club has gone into great detail on this very subject, so rather than reinventing the wheel, I will include the link below for all the dirty details.

https://www.akc.org/expert-advice/health/common-conditions/why-dogs-eat-poop/