People take the longest possible paths, digress to numerous dead ends, and make all kinds of mistakes. Then historians come along and write summaries of this messy, nonlinear process and make it appear like a simple, straight line.
In this sense, science, as physicist Steven Weinberg has emphasized, does not make it impossible to believe in God, but rather makes it possible to not believe in God.