Why does everything have to be "fun"? An activity can be good without being fun. Many of the best things we can do as humans are not fun at all and yet undeniably a good use of our time. I learnt the piano for 20 years and not a single one of the scales I played was "fun". I know an athelete who gets up every morning at 6am to run for an hour, rain or shine. She doesn't do it because it's fun, she does it because she wants something, and that's the way to get it.
The end result is when we receive our deferred payment for our labours, be it being able to play any song we can imagine, run a triathlon, or admire our sparkling new web app. Whether the process was "fun" or not doesn't really enter into it. In fact, wilfully choosing to do things that aren't fun in pursuit of an abstract or distant goal is a hallmark of adulthood, IMO.
I'm not saying I don't try to make the process as enjoyable as possible, of course. Just that I don't think programming is innately fun, nor do I care that it is not - one does what needs to be done.