Kicked out by who?
Pakistan may have been formed as an Islamic country, but India did not decide to become a hindu republic - it decided to become a secular nation, like most democracies of the time. If India had decided to become a hindu republic, then a lot more muslims, Christians, jains...