I think you have your history a bit backwards.
Galileo is considered the father of modern science, and he was one of the people that believed those goat herders. He argued that his views were in accordance with the Bible, not that the Bible was a bunch of random shit that was made up. Here’s his words on the matter:
>> Holy Scripture and nature both equally derive from the divine Word, the former as the dictation of the Holy Spirit, the latter as the most obedient executrix of God’s commands.[0]
The reading the rest of that letter also seems to indicate that he was pretty heavily invested in his beliefs of religion and science being supportive of one another. The father of modern science believing and arguing for religion kind of makes your whole argument a moot point.
[0]: https://web.stanford.edu/~jsabol/certainty/readings/Galileo-...