Science as we imagine it today—with laboratories, experiments, and a professional culture—did not appear until the nineteenth century, but its origins can be found much earlier, in the period commonly known as the “scientific revolution.” And the “scientific revolution” was a continuation of developments that started deep in the Middle Ages among people whose scientific work expressed their religious belief.
With the exception of mathematics, in medieval Europe things were different. Aristotle’s faulty method was struck down by the Catholic Church, allowing previously forbidden ideas to flourish. The Church also made natural philosophy a compulsory part of the courses it required trainee theologians to follow. So, science held a central place in Christian centers of learning that it did not hold in Islamic madrassas. And Christianity itself provided a worldview especially compatible with experimental science.
Christianity made science a theologically justified and even righteous path to pursue. Since God created the world, exploring how it works honors its Creator.