Of course, the gait speed itself takes as inputs many of the rest of those factors. Smoking history, body mass index, and chronic joint or muscular conditions all pretty directly affect one's ability to walk fast. So gait speed turns out to be a very convenient, easily measured proxy for those other variables.