Well you can read public code all you like but you can't just take chunks of code and write them under different licenses like how copilot has been shown doing.
> How much of licensed code is scattered across private projects?
Whether or not copyright violations regularly occur is not (directly) relevant to whether or not it is illegal. People download copyrighted movies without licenses all the time and it still isn't legal.