Many modern day dogs don't get opportunities to do what their breed instincts tell them to do.
In addition, it's a rare dog that exercises on his own, and your backyard doesn't provide the variety of sensory stimulation most dogs need to ward off boredom.
dogs need walks for both exercise and mental stimulation.