The question of why God created the universe is a complex one, and there are many different perspectives and beliefs on the matter. From my views and thought process may help shed light on this question:
Expressing love and creativity: that God created the universe as a way of expressing love and creativity. Just as an artist creates a painting or a musician composes a song, God created the universe as a way of expressing His divine nature and bringing beauty and wonder into existence.
Providing a home for humanity: that God created the universe as a home for humanity. The Earth and the universe provide the perfect conditions for human life to exist, and that God created the universe with this purpose in mind.
Divine plan and purpose: that there is a divine plan and purpose behind the creation of the universe, and that everything happens for a reason. According to this, the universe was created to serve a greater purpose that we may not fully understand.
Mystery: Finally, it's worth noting that the question of why God created the universe may ultimately be a mystery that we cannot fully comprehend, that the universe and the nature of God are beyond human understanding, and that we can only glimpse the truth through our own spiritual experiences and beliefs.
Ultimately, the question of why God created the universe is a deeply personal one that may depend on one's individual beliefs and experiences.