Consider yourself lucky. I enjoy programming in itself greatly, but I don't find myself motivated by producing anything useful.
Working on something that feels like it’s only useful as a way to extract money is incredibly unrewarding in my experience, to the point of increasing my feeling of burnout.