It’s interrelated. It’s part resentment, part mediocrity, part laziness.
If the only way the rich got rich is by screwing over people, then I’m justified in not working hard, not being ingenuous, not being diligent because what good does it make anyway.
And if people get rich with just a bit of hard work, that's a convenient kudgel to beat poor people over the head with. Clearly, they were too lazy or stupid to get rich.
It kind of all falls apart when even the relatively wealthy (like me) recognize there isn't much reason for them to be so much more successful than the people they grew up with.