If a company's ultimate goal is to extract money from people, then developers who can extract money faster (even if their rendering/loading algorithms suck) will get rewarded better than those who don't.
That's why enshittification is a thing (and actually come to think of it, not new either). It might be a dev that learned from product leadership that, "I could fix these 13 lines of code. But you know, our company could also sell a 'PRO' version subscription for $5 a month which provides the fix..."
The goal is to write not-bad code. You're not trying to do shoddy work on purpose but good enough is good enough.
There's a reason way more people buy furniture from IKEA than some craftsman who loves woodworking.
People also don't generally pay the premium for craftsmanship in clothing, house construction, vehicles, food ....
Lots of development shops care about UX/DX. Many Indie games are crafted with love and often many are successful -- even releasing bug fixes and updates years after it entered the shop on steam. Many high level developers learned how to write good code quickly, not just for themselves, but for the people that came after them.
If presented with a good argument, most people will agree to logic. Unfortunately, many business decisions are made behind closed doors to avoid dissent -- or even any discussion of alternatives.