This is also something that kind of breaks my brain. It's always impressive to see Copilot-"authored" code which seems complex, coherent, (and most of the time, functional), and Google it to zero previous results.
How is it that a glorified statistical machine is able to put blocks of code so well together?