Art is in the eye of the beholder. An AI wouldn’t know it was generating art. An AI doesn’t actually know anything. It merely pretends to know convincingly. A more accurate description is that AI can be used to generate images that people may perceive as art.