And the Muslims of the subcontinent on our side of the Indus are mostly descendants of converted Hindus. Who converted some time during the last 1300 years. Started worshipping Allah and following the Koran.
Then the Marathas came and upset their applecart.
Things were pretty grim, but Providence smiled and the Brits came. And helped by Muslims and in large part Hindu collaborators, defeated the Maratha as the de facto military power on the subcontinent.
That gave the Muslims a lifeline, staring as they were at the abyss of a Hindu India.
The rest is all modern history. And we all know what happened.
Cheers, Doc