It's not to ship software or whatever else, it's to make money. Because without money, you don't have your pay or job and the major reason why you do your job is gone.
Your perspective optimizes for your job and what you enjoy the most, but in most businesses, it's not just the factory and engineers that makes the business, and if you worked diligently on the wrong thing, thats an even worse waste. There are billions of lines of code out there that nobody gives a shit about because their associated business failed. The market doesn't reward the nicest team to work on, they reward winners. The nice team is just a tool to be more likely to win.