When we look at the history of science, we see that in fact it owes an immense debt to the religious world. In the early Middle Ages - a time when Christian Europe turned away from scientific thinking - the science, mathematics, and astronomy of the ancient Greeks was kept alive in the Islamic world, where it was further developed and enriched by Moslem scholars. In the thirteenth century when this scientific heritage began to filter back into Western Europe, it was originally taken up by Christian monks and theologians.
Throughout the late Middle Ages and Renaissance, most scientific leaders were men of the church, They included the great medieval champion of mathematical science Robert Grosseteste (Bishop of Oxford, and the man who reinvigorated the science of geometric optics); the medieval champion of experimental science Roger Bacon (a Franciscan monk, sometimes known as the medieval Galileo); the fifteenth century proto-physicist Nicholas of Cusa (a cardinal in the Roman Catholic Church and the man who first championed the idea of an infinite universe); and Nicholas Copernicus (a canon at Frauenburg Cathedral, and the man who more than any other introduced the idea of a sun-centered cosmos.)
Up until the eighteenth century, most of those in Europe studying science were indeed men of deep religious faith, many of them formally schooled in theology. In part that was because the church controlled the institutes of higher learning - particularly the universities, which had originally been set up as training grounds for the clergy and other church functionaries.
In popular mythology, the "scientific revolution" of the seventeenth century is commonly said to mark a fundamental break between science and religion. But nothing could be further from the truth. Almost all the great pioneers and founders of the new science were religious men who wanted a science that would harmonize with their faith. All three founders of the new heliocentric cosmology - Nicholas Copernicus, Johannes Kepler, and Isaac Newton - saw their new vision of the universe as an offshoot of their theology. Newton. in particular, was a religious fanatic whose whole life work can be seen as a search for God. Even the infamous Galileo was a committed Catholic who wanted nothing more than for the Pope to endorse his vision of the heavens.