According to the Pew Research Center article Key findings about religion in India, 97% of the Indian population is religious. Now, in all of the popular religions like Hinduism, Christianity and Islam, homosexuality is seen as a sin/unnatural, yet in 2018 homosexuality was legalized in the whole of the country.
I simply can not understand how this happened, because in my experience, people who are religious hold very tight to their beliefs, so how was such a liberal ruling instilled unilaterally on the whole country?
Some commenters found it controversial that I said Islam, Christianity and Hinduism prohibit homosexuality. Here are the relevant Stack Exchange posts:
Some people try to write this matter away by arguing that India is secular according to the constitution, for them I bring up the following facts:
India has laws restricting funding from abroad for certain religions, including Christianity. See here for instance.
India has laws restricting dietary traditions on religious lines. Eg: Beef ban
India has blasphemy laws, 'hurt sentiments' laws. See section in Wikipedia specifically under laws restricting freedom of expression
India has laws making it harder for inter-faith couples to marry/cohabit. See love Jihad laws
Indian governments sometimes build temples, fund temples, and manage temples [places of religious worship, not institutions like schools/hospitals]. See funding of Ram Mandir temple, many other examples exist.
On paper it is said to be secular, where the law is independent of religion, but the facts suggest to me otherwise.