And how does falling asleep imply relaxation? If anything, falling asleep implies mental fatigue. So we can assume driving adds more mental strain. There are entire studies done on driver visual search patterns when driving [0]. What kind of visual search pattern do you use when walking? Are you constant scanning the horizon looking for potential hazards? In fact, walking is generally considered to be an automated activity [1].
[0]: https://pubmed.ncbi.nlm.nih.gov/16127339/ [1]: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4879139/