Swimming with Sharks by Joris Luyendijk (about the finance industry in London) argues that amoral actors develop and thrive in environments where they get a “bonus” for good performance but fear no “malus” if their choices backfire. Organizationally, you see banks with separate, impotent, internal risk and compliance departments, while their “front offices” get literal cash bonuses for successful short term gambles. No rational actor sees any benefit to fighting for change: there’s no lasting result but personal ruin.
Developers have the power to refuse bad actions, especially like you say in a job-rich environment. But unless software developers experience risk consequences for developing something bad, some number of them will not obey their conscience.