There are many reasons why dogs like to eat shit.
1. Hunger
Some masters train dogs to eat regularly, but for this change, dogs may at first become hungry because they are not adapted and eat their own poop after defecation. For the sake of safety, the master must look after his own dog and avoid this.

2. Nature
If a dog has children, then the master has to pay particular attention to the behaviour of the dog in caring for the baby. Because the owner of the pediatric dog should know that a newborn can't defecate himself and that it needs to lick and defecate through the mother, not only to keep it clean, but also to prevent the smell from leaking, to avoid being hunted by other animals and to ensure its safety.