It isn't quite "religion" as much as it is vast numbers of the poorly educated population using "religion" to support their highly conservative views. Religions, including the dominant one in Pakistan, have a component of social responsibility.
Pakistan too has a trend of decreasing birth rate with increasing economic power across the economic classes of people, even though all ascribe to the same religion.