Mozilla’s next largest source of revenue is subscriptions and advertising (source 2021 financial report), by a wide margin. That “useless shit” is their other revenue, and they’re investing in it because they know they need to diversify revenue to fund Firefox. You’re suggesting they kill it because it’s not their core (unprofitable) business?
From a quick Google, it seems like Mullenweg is a complete jackass