It's not a brain. It's more like a very esoteric zip file which can extract a "lossy" version of the copyright material it was trained on, and reproduce that in an uncountable number of combinations that are meaningful to humans
Then it is creative. It is doing meaningful work on top of the basic facts it learned. The facts and the style can't be copyrighted.