AI generated code in all but the most trivial cases is never production ready.
In the real world, the resulting code that correctly and efficiently solves a problem ends up being unique enough such that an AI wouldn't learn much even if you fed this result back in. It's just going to average away all the important parts that made it correct.
If real world code wasn't so sparse and time consuming to develop it wouldn't be so valuable in the first place. Not to mention the fact that the maintenance is what you really care about and where the real costs are. Application code doesn't stand still.