All of these improvements only help free software. I’m not totally understanding your point
For one, Github is not free software, it is not even open source. You can't self-host a github instance for "free". It is slightly similar with Gitlab. The only git hosting service that I use and know to be fully free software and also made to be 100% self-"hostable" is sr.ht which just entered public alpha:
Free software development helps open source, but because open source is not all free software, the opposite is not always true.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.