And nazis literally invented rockets science that allowed us to explore solar system. So whats Your point? Because clearly you are not seeing that people are not rational but rather rationalizing. Which sometimes leads them to invent useful things like empiricism, and other times things that are not so useful (ideologies, religions etc)
You know followers of <insert any random thing> invented <any random thing>, right?
There's no dots to connect between one thing and the other. Someone can be a hardcore Catholic and invent an abortion device or an atheist could come up with a fancy new way of manufacturing crosses. Their stance on religion is irrelevant.
In this case, there are lots of dots. There are a disproportionate amount of Catholic priests represented within the scientific sphere, including the vast majority of famous ones.
https://en.wikipedia.org/wiki/Roger_Bacon