How is weightlifting beneficial for improving muscle strength and endurance?