I suspect you are greatly overestimating the average organization's ability to run a Git server themselves and keep it secure, while also overestimating how evil GitHub and LLM's providers are.
Nothing to do with LLM providers, more that giving private source code away to clouds and expecting them not to steal it day 1, is utterly naive and irresponsible.