Of course. But software developers are, on the whole, pretty damn well compensated. As a group we have a lot of freedom to make these sorts of financial decisions.
Yes, some members of the group don't have that freedom. But that doesn't excuse the ones who do.
Even if everyone had enough financial security (or realized they did), you need coordination, people are never going to independently and spontaneously turn down these jobs at evilcorp en masse - you need coordination, a.k.a strong unions which can actually effect the policies of the employer.
When you make a sacrifice, it has to make sense, and must have some chance for success. In this case it needs to be recognized by others, and a contemporary person can hardly understand any other sacrifice than monetary.