As a Latin-American I believe there is something more than 'India' going on here.
There is the overall incompetence of governments so common all over the underdeveloped countries. This causes incompetent and corrupt police and that causes impunity to criminals and danger to the weakest and most fragile in society.
You'll find lots of similar stories in other poor/corrupt countries, from Latin America to Africa, from Indonesia to Brazil.
Although caste and religious violence is a very Indian thing, for sure.