The distinctions between "religion v science" are modern ones. It wasn't "religion" at the time. It was worldview. We have worldview now too. We're just in the middle of it, and can't see the religious components of our supposedly secular times. Future eras will be able to, just like we can see the past with new eyes.