I was the first US employee of an Indian consulting startup. I was their engagement lead for a marquee account for the first 4 years and while I do not take all the credit, my management and I grew the account from 1 person to 250 by the time I left. What did I get in return? A 10% reduction in salary from my previous job, almost no pay hikes (there were some) for 4 years, a whole lot of "we are family" talk, and zero stock. Of course I was naive and did not have things in writing, but I still believe they owe me 3% of an 80 M exit price because that's what they verbally told me. But no, good employers turned into bad employers very quickly.
Of course there is a lot more to the story, I had my own faults, but I am not naming anyone and I am not publishing my story here. That life is over, I am not fighting that battle, this was 15-20 years back and I finally did move on and do other stuff.
But that 3% after a decade or more of (well managed) growth would have been awesome.
In a large company, it happens regardless of the qualities of the people involve, because it's baked into the processes. Good-natured people can mitigate it to some extent, but they cannot prevent it.
Differentiating between the two based on signals during hiring is almost impossible, though.
A company as a group of close friends? Be my guest. A company that pretends that we have bonds of blood, or are married? Not for me (unless we're actually family, as in family business).