Question: what happens if you don't walk your dog?
Answer: Walks can let them explore the surroundings and get accustomed to new sounds, smell and people. If you do not take your dog out for a walk they will never get to learn and differentiate between the various smells and they might refuse to visit any new environment.