Was Pakistan meant to be secular like India?

Re: Was Pakistan meant to be secular like India?

This raises a question why almost half of the Muslim population chose to live in India, when they were told by their fellow Muslims that they would be discriminated by Hindu majority?