I earn $100,000 a year writing god awful code for a doomed software company. Am I contributing more to the public good than the restaurant worker who cooks my food, the guy who changes my car's oil, or the guy who hauls all of my garbage away?
So yeah, you make decent living by writing awful code, good for you. If you think you don't deserve it, feel free to overtip your waiter. The alternatives are much much worse.
We don't know that. We know that some of the explored alternatives had different sets of trade-offs, in some cases making them pretty terrible.