Yes, India has a very "complicated" history - it was a huge melting pot in the past, split into many kingdoms and more or less independent "states" and territories; it is a densely populated, multicultural society in present times, still with extreme differences regarding cultures, ethnics, languages, beliefs, education, interests, mentalities and philosophies; ancient traditions oppose ultra-modern technologies, views and practices; superstitions, castes, ignorance, economic systems, knowledge and evolutions are entangled in fast moving trends and technical developments, or backlashes due to lacking resources and various conflicts. As a whole subcontinent, it could not be controlled efficiently.
And those in power supported the British Crown, because, left alone, they would have been, regarding their own military means, no match for the Japanese. And passive resistance would have, most probably, led to huge massacres, if remembering the extremely cruel practices of the Japanese invaders in other countries.
https://en.wikipedia.org/wiki/Quit_India_Movement
https://en.wikipedia.org/wiki/India
https://en.wikipedia.org/wiki/Caste
https://en.wikipedia.org/wiki/Master_race
https://en.wikipedia.org/wiki/Mahatma_Gandhi
Last but not least: like everywhere and throughout human history political strategies consisted in scapegoating or blaming "ennemies", rivals and "underdogs".
And this is also part of the "evil" sides of human nature - much like extremism ...
May I conclude with an old saying?
"The road to hell is paved with good intentions!"
https://en.wikipedia.org/wiki/The_road_to_hell_is_paved_with_good_intentions