There is another aspect to the growth of science-that came directly from Muslim religious needs.
This is from Institue of history and science museum -Italy
..In the Islamic world, the study of astronomy was closely linked to religious practices. The faithful had to determine the times of the five prayers prescribed by the Koran. They also had to find the direction of Mecca in whatever region of Islam they happened to be. These calculations could not be performed accurately without applying spherical trigonometry and studying the Ptolemaic celestial model..