It’s not factually true though. “In the beginning God created the heavens and the earth. Now the earth was formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters.”
According to science, in the beginning there were no heavens, no darkness, no deep, no waters, for in a singularity there is no space. The earth didn’t appear until the universe was 67% its current age (and humans didn’t appear until it was 99.998% its current age). Everything in the two verses is factually wrong, according to modern science.
But I suggest the lines weren’t written as impersonal physics, they were instead written from and for a human perspective. Ordinary mortals cannot imagine the inside of a singularity (for starters, it doesn’t have one), but we can imagine the picture painted by the verses. In the original Hebrew (previous post), the writers seem to be saying the land was formless and empty, either structure-less, mixed with liquid, or flooded by water. All was darkness. We can imagine that. The only movement, the only life, was God’s wə·rū·aḥ (Spirit, breath, wind). Some commentators say it not only indicates that only God is alive, but that he is cherishing his creation, by analogy to the same expression used in Deuteronomy 32:11 for an eagle hovering over her young. I’ll have to do some research on what modern scholarship makes of those two verses, but I suggest it will try to understand what the writers intended spiritually in the context of their own culture rather than 21st century American scientific culture.