Whether it's art or code is basically a difference without a distinction to me personally. I'm not sure what makes it different.
Like, in my view, if you're using a generative AI model that was trained without license, compensation or even so much as basic consent from the people who created the original training data, then I feel that is an unpaid exploitation of other people's intellectual labor. You are taking advantage of someone else's work, and in most cases doing so regardless of any kinds of copyright, license, or other agreement. And, considering a former top AI executive at Microsoft called what they were doing "the largest theft of labor in human history", I think I'm not alone in looking at it that was.
As a person, I've always been something of a "jack of all trades"--I like making art and playing music, but I also like computers, programming, FOSS and game dev. I'd be lying to you if I sad that I wasn't pretty sad and disappointed to be living through a time of mass fraudulence and exploitation, when human skills and creativity are instantly punished by theft and exploitation on an unprecedented scale, by those with the most money and compute power in the name of short term profit and "the ends justify the means" thinking.