Yes, because they were Indian, part of the Empire, but they had to be split from the other religions. Of course they also did it so they were better placed to argue for their own nation post war.
It's not hard to work out that it wasn't because they cared about the west.