Mozilla made 530M in 2016 - they're a company. Firefox is is a strategical business decision. Their interest in the web is the exact same interest as Google's in the web. $$$.
This is necessary because the non-profit isn't allowed to do certain things, but a for-profit can, and the non-profit is allowed to own a for-profit.