There is still a distinction between bad human-written source code and AI slop.
The human holds the copyright of his work and can do whatever he wants with it, including distributing it under a open/libre license, i.e., open source.
AI slop? Not so much. The model is very likely trained on stolen work. It's tainted. Nobody owns the copyright of everything it generates. No one can "open source" it. The license every one receives is voided.
And both who (intentionally) releases bad code to the crowd lack the spirit of open source, but the AI one is also right out illegal.