Not going into when,why and by whom that book is written... But yeah, science is easily overridden if it was all just Gods plan. And if you do or don't think about it too much, science and faith are not necessarily opposite sides. Other is figuring out when&how, other is giving brief explanation of what happened in a storyform.
After all, that what Bible is, a curated collection of stories.
The need to have explanation for things we don't understand is truly a fascinating part of humans 💯🔥