Like any other field, some of the compensation differential results from choices that people make career wise.
A nurse can opt for a job in a school system. In my area, these jobs don’t pay as well as nursing jobs in hospitals. But there is no weekend, holiday, or evening scheduling issues; you are part of the teacher’s pension plan (relatively lucrative); you get part of the summer off (not all of it- school nurses are typically back at work in early August). The work is part public health and part actual nursing- and from what I am told, is much less stressful than anything in primary care.
I have a friend who leads patient recruitment for a drug company for a wide range of clinical trials. Jobs like that likely pay at the very high end of the comp scale-- you don’t need to be a nurse to get one of those jobs but the credential certainly helped her pivot from patient care to a corporate role. Another friend works occasional shifts at a nursing home- she has a BSN plus certification in a couple of critical care areas, but is only “keeping her skills” for right now- and doesn’t make much money all- in from what I gather (but who makes a lot of money as a part-time worker doing anything?)
So these comp surveys need lots of footnotes before anyone picks a career based on a chart.