Why do horses eat their own poop?

Horses eat manure if they are not fed enough, there is hay in poop and if theydon't have any food, they will most likely eat their poop or other horses poop.