Most software is poorly optimized.
Compare: Computer game from 1995 to computer game from 2023, to chat client from 1995 to chat client in 2023.
One of these demonstrates many orders of magnitude improvement consistent with the improvements in the hardware, and it isn't the chat client.
If you just pull teeth instead of fixing them you need less dentists. Everybody wins.
Why bother with foundations if you can just tape together whatever works and call it a day? If it crashes you just add tape.
But the comparison here is more like the other way around, isn't it? Fixing the problem by just throwing more resources at it is like making up for an inefficient construction workflow by hiring more construction dudes.