"Publicly available" is different from "licensed under a FOSS license". Anyone other than the original author doesn't have the right to distribute, modify or even execute the code.
Even if the code is licensed under an open source license, in most cases it requires users to attribute the original author, while in some cases derivative work must be licensed under the same license too.
GitHub Copilot use the code without honoring these obligations.
You grant GitHub a license to display your code, same for Codeberg, they're not bound by your license because you're granting them specific rights. Secondly can you prove damages when a person uses your code but doesn't attribute you? If you can't your license isn't very useful. This is what we all need to understand.
It's publicly available code that comes with licenses on how you can use that code that they ignore, such as share alike but they're charging. That's an ethical issue.
In the early days (months after public release not beta), it would literally give you code stolen from someone's repo, sometimes with credentials (security risk) and project specific stuff. That means because you took code verbatim to the naked eye you would be held liable for license violation.
Are they crawling the internet looking for all the publicly available code that exists or are they just training their model on the code that people upload directly to their servers?