Mozilla, a non-profit, which produces primarily a browser with currently a small market share, needs to do something to bring in some revenue. Having Google as the default search at one time (and may still be) a revenue stream for them.
But on the last point about advertising. I disagree with your statement. In many cases, advertising allows consumers to know about services and goods they might otherwise not know about. This isn’t inherently bad. I believe the adtech way, though, is because it puts at harm a lot of people’s data for, often times, a very negligible benefit in reaching consumers.