Comment by kragen
That's just the copyright office of one country out of a couple hundred, the courts can overrule them, and legislation can change. However, I agree that currently in the US (or on code written in the US) copyright probably doesn't inhere in AI-written code.
The US constitution limits copyright to protection for authors and inventors. I'm skeptical that a simple law could extend protection to machine generated works without being ruled unconstitutional nor does there appear to be any significant government or public support for such a thing.
And while yes, the US is just one country, but it does have a bit of an outsized software development industry. I also haven't hear of any other countries lining up to give machine-generated works copyright protection.