One thing that's important to note (which holds for the Mozilla Corporation too) is that the for-profit thing is a legal status, but the Foundation (an official non-profit) is the only shareholder, i.e. the only entity that "profit" can flow to. So you're not lining some billionaire's pockets.
(Though of course, employees of either entity can be paid whatever, which also holds for every other non-profit.)