This "hero tax" probably dovetails with the effects of "passion" professions, where people pursue them for reasons other than traditional employment considerations like pay and working conditions. One area where I think that probably overlaps are teachers: my stereotype of one is someone who really cares about educating kids, so they put up with the low pay and other bullshit.
And just to illustrate the difference, I think a "passion" profession that's not considered heroic is video game developer. My vague impression is the pay and working conditions for them are much worse than for other kinds of software development work, because there a lot of people who are so passionate about video games they'll sacrifice a lot to work on them (until they burn out, at least).