The most accurate response is:
Stronger muscles better support the bones overall, meaning the muscles can compensate for some of the potential detriments of bone loss.
While swimming is a good exercise and helps maintain overall fitness, weight-bearing exercises are typically more effective at increasing bone density. However, the point about stronger muscles supporting bones is valid and highlights the importance of overall physical fitness in relation to bone health.