India earned its independence cos British needed their own soldiers to protect them after WWII as they had lost millions of their people in the war. Also they had no use left of India, as they had already shipped all the wealth out of India by 1947, as they needed that money to construst their country