Don't you know better than to ask for a rational explanation for things written in the Bible? This is a question I would expect to see on a Christian forum; not an atheist forum. Is this some kind of Jedi mind trick question? lol
In any case, if you want to know how I believe Christians rationalize this, it goes something like this: God works in mysterious ways.
Yes, “God works in mysterious ways” seems to be the way that Christians explain the unexplainable.