The means through which a piece of content has been produced is totally irrelevant. The original content has to be distinguishable in the new one for copyright laws to apply. This has been judged over and over when sampling became more and more widespread. Some DJ sampled the original songs blatantly and thus had to pay the original authors. Others applied so many sound transformations that it was basically impossible to identify and thus copyright was basically impossible to apply.
“If it could learn openai would create a new programming language, train it for real, and it would be the greatest programmer.” I don’t understand what you’re saying here. It can invent new languages, but they would those be better than existing ones? It’s less intelligent than a human (though still intelligent) so the language would be worse than existing ones
Those AI produce original content. The means by which they produce it shouldn’t be relevant.