Because another partner would pay to be the default search engine of a browser with declining market share. Would you want to count on donations to fund a company the size of Mozilla?
I'll arbitrarily guess 1.2 billion iOS users (the rest being Macs). In that case, there are maybe 6x as many iOS users as Firefox users. Therefore, if Google paid the same per Firefox user as they did per iOS user, they would have paid $1.3 billion for Firefox users. That's a difference of about 2x per user from what they actually paid.
iOS users have demonstrably paid for (or been gifted by people who paid for) premium electronic devices, which I would expect makes them more valuable advertising targets. I'm mildly surprised that the difference isn't larger, but I don't have a good feel for advertising expenditures.