The reason is associated with the ancient times when dog’s wild ancestors would roll in dead animals and poop to mask their scent and blind fool their prey. Dogs have inherited this instinctive behavior to cover their scent during the hunt.