If i read the code published on github and later i do not infringe on any license.
If later i'm hired to implement some function chances are that i'll produce code which is similar to what i've learned from github.
Or if somebody asks me on how to implement some function and i can respond: Hey that and that project on github already doing it, just use it, i'm not infringing on any license.
Now, replace "I" in the above paragraph by "Copilot".
It seems that Copilot is not infringing on anything...