Why do dogs eat their own poop?

I think because it smells like his food he ate so he eats it