Mozilla is not telling google obviously because they don't know who you are. But it's a technicality as they enable and empoyer google to do it by themselves, in exchange for millions of dollars. For a few years over 95% of mozilla revenue in millions of dollars came from google for exposing their user privacy while most users were not aware of this and mozilla boasting being a white knight for privacy.
Then when they finally decided to do something about it, the chose to help yahoo artificially inflate their usage stats to improve the value in the upcoming sale, but only in the US where they had lost the most marketshare, in Europe where firefox was still relevant and where there are alternatives that actually respect user privacy mozilla chose to keep google as the default search engine.
But my point was simply about directing users' searchs to google search engine, which is enough to expose yourself to google.