A lot of the work at nonprofits is challenging and demanding. Everybody deserves good compensation. But as with large for-profit companies, it's often only executives who get that. Take a look at CEO compensation over the decades. It has risen massively compared with worker pay: https://www.epi.org/publication/ceo-compensation-2018/
Maybe CEOs have gotten 940% better at CEOing in the last 40 years. But I think the more likely answer is executives have gotten much better at skimming a larger slice of pie.
One could argue that if investors want to grossly overpay for-profit execs, that's between the investors and the execs. But that's definitely not true in not for profits, which get all sorts of legal and social leeway because they're in theory doing good for society.
So yes, it's fair to argue that having very highly paid executives in a non-profit is terrible. Does that mean execs who are in it for the money will stick with fleecing investors? Probably. But I'd say that's better for the nonprofits, as then they're likely to end up with people who are there for the mission.