Google needs to sponsor Firefox because if Firefox goes away, they will get hit with the monopoly stick of the EU and get bigger restrictions.
Just like what happened with Internet Explorer.
So it is imperative to Google to keep Firefox afloat whatever the cost. And Firefox has to do nothing in return other than exist.
Mozilla does not send any data to Google, which you can not say from any of the Chromium-based browsers like Edge.