My body being in pain and my brain enjoying working the body are not at odds with each other.
In my experience trying to become an ultra runner, its not that I enjoy the pain. I enjoy the workout. I enjoy the run while my body is in pain, not that I enjoy the pain itself.