Under capitalism, a lot of the time, highly dangerous jobs are also highly paid. Kind of a balance that the individual decides to engage with. Same idea behind getting an advanced degree in STEM or law. I think of my job by example, I’m a power plant operator at a large combined cycle plant. No fucking shot I’d be doing this if the pay wasn’t good. I’m around explosive and deadly hot shit all day.


Without subversive profit incentives, the incentives become to make necessary-but-undesirable jobs more safe/pleasant/automated. Without worrying about their next paycheque, people can spend time on the issue.
This requires a post-scarcity society that is fairly well developed, before they try to convert to communism.
I wouldn’t necessarily say that capitalism pays dangerous or unpleasant jobs well, though. Some do, but lots don’t.