How is eating feces harmful to dogs?

Well it's something that the dog has already eaten and needs to get rid of, but in truth, it's not harmful