Isn't this the case with all art?
There are many commercial artist that are putting some of their creative input to the side to make something that sells. That doesn't stop it from being art.
There are photographers that in their daily lives make school pictures or journalistic picutres while they may be more interested in making artistic pictures.
The same used to be for painters (a lot of the great painters actually) used to mostly make portraits or commission pieces to order, not to their taste.
Same goes for writers, videographers and other arts.
On that at least we agree (ignoring the rubbish about "AI", unless it describes an artificial intelligence with at least peer-level (i. e. human-level) agency, and not a language model). The same goes for the ridiculous, but for chatbot lovers certainly convenient, notion that art stops being art because money (or some other form of compensation) changed hands. That's just a reheated version of the tosh incompetents threw at artists since time immemorial. I remember the last time when it was very en vogue: the pathetic "anti-art" movements of the 90s.
And programming? Processes and their manifestations, depending on definitions of course, can indeed be art. Just like writing and its manifestations (e. g. poems, novels).