Most people don't find their "fun" activities enjoyable all the time. Running can be fun, but it also is tiring and sucks sometimes. Practicing a musical instrument isn't the most enjoyable, but playing in a band and nailing songs is. Lifting isn't "fun," but excelling at a sport is.
Point being that not liking the boring parts of an activity, but still finding the activity as a whole satisfying, is something that most people would consider to be an activity you enjoy.
Where I disagree is the claim that you don't enjoy programming. If you enjoy most of the component parts of an activity, my claim is that you actually do enjoy that activity.
Let's take hiking as an example. I can claim that I don't actually like hiking, I just like being outside, being in the forest, and walking. Hiking is therefore just one of a multitude of activities that could meet those desires. However, because my "likes" comprise the vast majority of the appeal of hiking, it is fair to say that I actually do enjoy hiking.
Ultimately, this is a semantic distinction. My claim is that by the commonly used definition of an "enjoyable activity," I would classify programming as an activity that you at least moderately enjoy.
What made it click for me is not pushing myself too hard. I used to run at an intensity I realize in retrospect I could just barely sustain. This worked, in that my fitness increased and I got faster, but it always felt horrible. This was the case when I ran alone, or with my partner - when we run together, we tend to subconsciously push each other to go a little faster.
Then, we started running with a much more extroverted friend who likes to talk a fair bit. This put a natural limit on the intensity, and apart from enjoying the socializing, I also felt physically better. It also worked fine for fitness, and I got a PR on a 10K race while training this way.
Now I find that even when I run on my own, I'm much better at finding a pace I can sustain comfortably, and I enjoy it!
As a casual runner, I'm very happy I've come to this realization, but I'm sure the experience is very different for someone who is either very unfit and finds any speed uncomfortable, or for someone who's training seriously and needs to push hard to attain their goals.