Dogs need walks for both exercise and mental stimulation.
Dogs like to go for walks to get outdoors, sniff and engage with their environment, exercise, and perhaps socialize with people and Dogs outside the home.
There is no reason that a walk cannot encompass and meet all the needs of both humans and Dogs.