This is called Coprophagy,(eating feces) caused by vitamin difficientcy.Or sometimes boredom.