EDIT: The user would perhaps be the direct infringer as the person who made a copy of the code, even unwittingly.
Source: current law student taking copyright and writing a paper about Copilot.
[0] https://en.wikipedia.org/wiki/American_Broadcasting_Cos.,_In....
[1] https://en.wikipedia.org/wiki/Sony_Corp._of_America_v._Unive....
Other stuff within copyright makes infringement of a small Copilot snippet less likely too, and the recent Google v. Oracle decision reinforced the fact that copyright is an awkward fit within copyright and may sometimes get less protection than things like fictional books. Fair use also comes in here, too; remember something as "egregious" as Google copying 37 Java packages worth of package / class / method declarations into Android was held a fair use. Declaring code is sort of special because it's more like an interface, but the Court really reinforced the notion that it likes cool new technology stuff that opens new markets, makes new products, etc., and a fair use finding for small snippets of code is in line with that as adapting copyright doctrine in the face of tech changes like AI / ML.
Part of the problem is much simpler actually. Copyrighted text can cited without permission or product names become public before release, revealing disclosed information to competitors.