You can debate weather pain is good or no good for muscles and joints all day long, but pain also brings another intangible gain: mental toughness, which can change the body's perception of what its limitations really are. When you're used to the pain, you can push yourself to the threshold (and stay there) more easily.