Why was the Universe created?
The Universe was created for cause as a repository for a Kingdom War initiated by Satan in the Spiritual Realm before Time began…that Coup and its destructiveness was removed, extricated, from the Kingdom and placed within the created Realm of Time partially constrained by physics as our entire creation is predicated upon WAR (war…which has inundated our existence from the Genesis forward) and a formal declaration of war was announced early in the Genesis in Genesis 3:15, a war that would proceed forward between Elohim (Genesis 1:1) who would enter the Realm of Time in flesh via the “seed of the (virgin) woman” and do battle with Satan and Satan’s army…the battle strategy that Elohim would employ is first pictured for us in Genesis 3:21 which is a picture of The Gospel of Jesus Christ (Matthew 26:28) where Elohim, Himself, would shed innocent blood to clothe fallen humanity in a gifted-imputed “robe of righteousness” and thereby destroy the works of Satan, death-Hell-the grave, through an act of selfless love thereby modeling for the faithful angels in the Kingdom the honor and dignity and necessity of obedience to Elohim’s will and the superiority of obedience to disobedience…our entire creation in Time, the previous 6000-years of war and horror initiated by Satan, acts as a bulwark against future rebellion in the Kingdom where free will exists and is paramount by necessity; in fact, the primary reason Jesus our Messiah entered the Realm of Time was “to destroy the works of Satan” (1 John 3:8b) via the Gospel which was ordained “before Time began” (2 Timothy 1:8-10).
You and I are but demonstrative vessels for a much superior life-form in the Spiritual Realm, the Angels, and those of temporary humanity who coalesce with and support Elohim in His battle with evil via faith in Jesus as Messiah will reap the benefits of that loyalty in Eternity…those who reject and war against Elohim will ultimately cease to exist subsequent Judgment via the “second death.” (John 3 v. Revelation 20:11-15)
Time is a created entity for a specific cause and purpose and Time, this physical World, will be dismantled and destroyed by fire (2 Peter 3:10; Revelation 21)…purified and made fit for the eternal Kingdom, the New Jerusalem (Revelation 21-22), where the faithful in Jesus as Messiah will serve Him, forever, in resurrected bodies fashioned after the resurrected body of Messiah (Philippians 3:21).

