The fact that one of the subsidiaries is structured as a for-profit is a red herring. Just a legal structure. The whole organisation is non-profit.
Mozilla CEO's salary isn't even that big, in the large scheme of things.
https://www.erieri.com/blog/post/top-10-highest-paid-ceos-at...
I agree, though, that non-profit shouldn't automatically be conflated with beneficial or working for the common good, as is common.
Mozilla Foundation has a staff of 80 and "manages" about 1000 volunteers. It's unclear how much donations it gets as they published a consolidated report that includes the corporation. I expect that very little.
Mozilla Corporation has a staff of 750 and $400M revenue (I expect most from the Google search deal).