To that I can add from personal experience, that indeed cognitive capacity and muscular health are tightly linked. I remember that on the peak of my form in a gym, I was able to code better, longer, and keep larger mental models in my head while doing it. Compared that to the period after back injury, where I was unable to do any physically challenging activities, I noticed a slump in cognitive abilities as well. So I can't see, how evolutionary, population with weaker and weaker bodies can keep producing highly capable individuals. And yes, of course there are plenty of cases such as Stephen Hawking and alike, but these probably are exceptions that prove the rule.