> This is how a caste system works.
Not at all. In a caste system a lower caste person will get attacked if he (or especially she) has any success at all. Whether or not what they did was legal or not does not factor into the equation. First priority is that the highest up dalit is lower than the worst drunkard brahmin, even if they have to kill them.
Tulsa once had what was known as Black Wall Street. There were too many successful black men, so 1921 in the whites massacred everybody. They even brought in planes and dropped bombs.
https://en.wikipedia.org/wiki/Tulsa_race_massacre