Easy!
Under the circumstances where the artists whose art was used to train the model explicitly consented to that (without coercion), licensed their art for such use, and were fairly compensated for that.
Plenty of artists would gladly paint for AI to learn from — just like stock photographers, or clip art designers, or music sample makers.
Somehow, "paying for art" isn't an idea that has entered the minds of those who use the art.
Perhaps because it wasn't asked enough.