It's not clear whether religion is the reason, since the Arab Golden Age of Science occurred during the dominance of Islam.
From Ofek's article of the above title,
To anyone familiar with this Golden Age, roughly spanning the eighth through the thirteenth centuries a.d., the disparity between the intellectual achievements of the Middle East then and now — particularly relative to the rest of the world — is staggering indeed. In his 2002 book What Went Wrong?, historian Bernard Lewis notes that “for many centuries the world of Islam was in the forefront of human civilization and achievement.” “Nothing in Europe,” notes Jamil Ragep, a professor of the history of science at the University of Oklahoma, “could hold a candle to what was going on in the Islamic world until about 1600.” Algebra, algorithm, alchemy, alcohol, alkali, nadir, zenith, coffee, and lemon: these words all derive from Arabic, reflecting Islam’s contribution to the West.
Today, however, the spirit of science in the Muslim world is as dry as the desert.