Your reasoning implies that specific people within an org are not getting raises, but in practice it is entire orgs going without raises or promotions, regardless of what any individual is doing.
It's obviously both in different circumstances. I've had plenty of raises while the rest of my team didn't, and when I stopped doing what I was doing, I joined them.