It is bad enough that Firefox depends on Google money for survival, I don't see why they should give even more of their freedom away to rely on Microsoft.
The kind of low-effort contributions that you would get from people that will only contribute because you are on Github are not the ones that you need or want anyway.
Plus if they wanted a alternative, Gitlab is so much more pleasant to work with anyway.