At least until they themselves eventually find their place on the chopping block as well either through management decisions or automation hits them too. But SW devs never though of this as the market always favored them and they saw themselves as irreplaceable godlike figures at the top of the food chain, so maybe it's time to reconsider that mindset, gain some empathy about other people's jobs and think about unions to push back on certain industry trends that screw over the little guy, since what goes around comes around.
Whenever I sign a new employment contract, I'm aware it's not a charity, I'm there because they need me, as I make more money for them than they pay me, and I'm also aware that the moment that math stops being true, they won't hesitate to let me go and replace me with someone who can do the same work cheaper. Such is capitalism.