Foundations yes. Not most nonprofits. The vast majority of nonprofits are tiny mission driven orgs that pay nearly or actually nothing.
Scammy nonprofits exist.
For every one of the ones you describe, there are a hundred other 501c3s you never hear of run by unpaid passionate people and with an annual budget under $20k.