Code can be art. Art can be formulaic and lazy and disposable.
The context in which both the code or art is used matters more than whether or not what you're AI-generating is "art".