In short, it has to do with funding. It used to be that Mozilla was largely funded by !G but that changed at the end of 2014 and now their largest benefactor is Yahoo, which is now the default search engine in FF.