I didn't say work hard. But if you keep contributing what you already contributed previously and nothing changes, your salary likely also doesn't change. Changing that doesn't necessarily require working hard, I haven't made any such claim. In fact my salary inversely correlated with my effort. But I do recognize that when I stopped changing things (i.e. my role in the company became stagnant), my salary also remained stagnant.
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.