It's probably both that and how financially secure they are in general, whether that be via grunt work, inheritance, safety net, whatever.
I spent the first 5 years of my career spending the equivalent of minimum wage or less. Now I don't need to give a fuck. Realistically, on a starter dev salary, you can save >50% if that's your target.
As a result, it's a manual process for me to empathise with people who actually _need_ their job.
Don't get me wrong - I understand their predicament - it's just not an automatic impulse, because for me, work is like a side quest I do to keep myself ticking over in the long term, a bit like regular exercise or a good diet, it's never present constantly in my mind like I imagine it must be for a wage slave.