Rule of Thumb #1 : The closer you are to affecting the marginal profitability of the company, the more you make.
e.g. Updating actuarial tables on a 20 yr old insurance system = low pay. Using ML/AI to re-build the actuarial tables into more profitable products that someone else loads = high pay.