Well presumably the person in question doesn't take the Bible literally, which is quite possible.
I'm not religious myself, but faced with a concept of a Big Bang, in which apparently, everything in an infinite universe was created out of nothing, I can see how believing in a creating deity doesn't seem so odd. Listening to discussions of quantum physics and so on, at my layman's level, it all sounds just as made up as any religion. Perhaps, eventually, it's more provable, but I'm not even sure about that - the best we can say is that the theory fits the evidence - we can't set up an alternative universe to check...
But that's the thing with religion. As soon as you say that something in the bible is total tosh to a person of religious persuasion (who also understands it really is total tosh) they say something along the lines of 'well the bible is not literal you know'.
Slipperier than a bag of eels these believers! It's literal when they want it to be and vice-versa.
Tbh, and no offence intended, it beggars belief that anyone can say that eg Quantum Physics is as made up as the Bible.
The Bible is a set of stories made up by some, by today's standards, pretty ignorant people. Quantum Physics is built upon decades of research by numerous eminent, and not so eminent, scientists.
Does anyone really watch the likes of Prof' Cox and think that he is spewing out fairy tales?
Science works for me because it postulates theories that can then be proven or not. If it's proven then it goes into the great repository of knowledge that provides the foundation for future theories.
There was a program on a while back where some believers and non-believers traveled through America testing various scientific theories.
One young religious girl totally 'got' evolution when a sequence of skeletons, that were steps in the evolutionary process, were laid out in front of her but she had to reject the notion as it would compromise her faith. Says it all really.