There are are plenty of well understood mechanisms for how exercise can improve health. There are way may plausible but not yet well understood ways it can help.
Clearly any error from the self selection you described does not counter an demonstrable mechanism.