Riots are the exclusive domain of those who view themselves as outside the law. Whether they are outside the law because they are above or below it is a matter of perspective. The rioters may see themselves as the oppressed who are below the law while their victims tend to think of them as above the law, with the power to rob and kill, without paying any significant price for it. All that is true whether we are talking about Russian peasants killing Jews, Indonesians killing ethnic Chinese or African-Americans killing whites.
The riot is usually directed at the authorities or some vulnerable group, sometimes both, but invariably one of them takes precedence. The authorities prefer that the rioters direct their rage at a conveniently vulnerable group and afterward the vulnerable group takes the blame for the violence directed at them. The rioters treat those few of their number who were killed in the looting spree as martyrs, while the rioted-upon pick up the broken glass and try to reopen their stores again.