Supply/demand.
For example, GPU shader programming is something people will practically fight over doing because it's so non obviously utterly addictive.
I would say dev roles in tech in general that lack an operational component also lag in pay, and much of gamedev is pure dev in a sense the wider tech industry has since largely forgotten exists.
On the art side it's even more extreme.