This article doesn't provide enough info for me to see exactly what they did, but to me it seems more like a correlation that the people most likely to be able to perform exercise in a trial are also the people most likely to be able to improve their mental state over time.