This is all a result of short termism. Short term profits from dark behaviours trump long term profits from satisfied customers. Why is this behaviour of publicly traded companies surprising to anyone? It’s not unique to software either.
It’s the economic system that needs to change, not the devs.