I don’t see why a person who did not use their own creativity to produce code should be given copyright for it.
In fact, current US law says AI output cannot be copyrighted.