The more enjoyable a job is, the lower the salary the boss can offer before people balk at taking it. It isn't something you can suss out in individual cases, but statistically speaking it holds up.
When I sysadminned in the turn of the millenium, I could definitely see the pay gap between running systems for corporate America and doing it for scientists in academia.