The question you're asking is based on the assumption that a particular religious or theological perspective is correct. The idea that God created the world in a specific timeframe, such as six days, is rooted in the Abrahamic faiths, particularly in the Judeo-Christian tradition. This belief is derived from the creation story in the Book of Genesis in the Bible.
However, it's important to recognize that not all religious or spiritual beliefs subscribe to this particular narrative. Different cultures and belief systems have their own creation stories and explanations for how the universe came into being.
In the Judeo-Christian tradition, the notion of God creating the world in stages over six days is often interpreted as a way to express God's divine wisdom, purpose, and omnipotence. The story is symbolic, conveying theological truths rather than being a literal account of how the universe was formed.
Interpreting religious texts, including creation stories, is a complex matter, and various religious scholars and theologians offer different perspectives on these narratives.
Additionally, from a scientific perspective, our understanding of the origin and development of the universe comes from fields such as cosmology, astrophysics, and geology, based on observations, evidence, and the scientific method. These scientific explanations do not invoke a deity as a causal agent, but they seek to understand the natural processes and physical laws that have shaped the cosmos over billions of years.
Ultimately, questions about creation and the nature of the divine are deeply philosophical and theological in nature, and different individuals and religious communities may have diverse interpretations and beliefs.