There's a more interesting question about the copyright status of the code it outputs, since the language model is sort of like a compiler, but also not like a compiler since the output is based on other people's copyrighted code.
I feel a lot of people get caught up on the output code and completely ignore the fact that copilot itself is likely a massive copyright violation.