Only that it's a minor contributor and I would argue that's the case.
One of your examples, swimming, will put on weight as it will builds muscle mass which obviously is heavier. But one of the side effects of this is that your appetite will increase. And without careful diet management it's very easy for this exercise to be a net negative.