It means that it is a virtue for us to keep healthy, while it is a virtue for others to have a healthy body, and we need to accumulate happiness.
This sentence is a famous saying commonly used in the medical field, in order to let more people establish health awareness.