The authors of the biblical books had limited knowledge of science and the world, so the Genesis account was their way of trying to explain what they believed.