By that logic they would have to ban all public domain code.
It's also not always true. Unmodified AI output can't be copyrighted, but if AI was only used as a tool and there is still significant human input, e.g. because the AI output needed some manual editing afterwards, it is copyrighted.