You are leaving out one of the more visible perks of the job - the power and prestige gained by serving as a SC justice.
Put a price tag on that and then tell me any SC justice, state or federal, is undercompensated.
There is also a huge loss of privacy, and of freedom to say whatever you want to say whenever and wherever you want to say it. It's not just a heap of "power and prestige".