Question: what happens if you don't take your dog for a walk?
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.