Not strictly true.Of course. And if you want to go back further, Britain whipped up the fury of Islamic nationalism in India to try to undermine them having democratic control and freedom from colonialism. Thats a large part of what led to the creation of an Islamic state in that area.
At the start of WW2 India wanted full Independence for full cooperation; this was duly promised.
Pre WW2, under British rule the large Muslim Minority had their 'political position' somewhat safeguarded by the british 'divide and rule policy' to keep the multi faceted Hindu Majority arguing amongst themselves and not uniting against the British.
After the war the Muslims did not want a United Independent India, fearing, probably correctly, that without the British to fight their corner they would always get the short and of the stick.
The partition was a Muslim Idea.
The Hindu Indians didnt seem to mind if they were the boss of a Untited India or Boss of an Independent Hindu India
Independence without those pesky muslims = win win.
Only the 'rich Muslims' who could vote (17%?) were the drivers of Partition, the majority of poor Muslims weren't too arsed as whoever was the political boss in Delhi or where ever they would still be at the bottom of the heap.