This is an example of a whole field called "embodied cognition," the idea that our thinking is tied, functionally, to the way we move in and through the world.
http://blogs.scientificamerican.com/guest-blog/a-brief-guide-to-embodied-cognition-why-you-are-not-your-brain/