Depression isn't monocausal so it'd be far too simple for it to have a single solution.
But in general, humans just work better when we're regularly putting our bodies under reasonable physical load.