This is a fun question to ponder, and you'll get a thousand different answers from a thousand different people.
I think the more important question (and much harder to find an answer for) is What's the meaning of the universe? Why does the universe exist? How was it created? Why was it created? What was before the universe was created? What comes after the universe?
And you can join those two questions together. Are the two related? Is the universe's purpose to create life? Is life's purpose to experience the universe? Would the universe exist if there was not life to experience it?