>>40663768 (OP)I come from a background of asian philosophy, so I can explain it from this view, how the universe works.
In the beginning there was the first being of this universe (there are others too) and that was the Brahma. Through his karma he was very powerful and able to create a world. But his first creations turned out to be bad. It was monsters and demons, and he had to try again and again to make something better. When he got more experienced with creation, the beings he created became more beautiful and positive. He created a big variety of beings, humans and animal and spirits of nature, and in the end gods and angels, as the best he could do. One of these gods, Vishnu, got the job to watch over the world and maintain the cosmic order. Another god, Shiva, was good at fighting and destroying demons. So the world became more orderly.
The beings on Earth, like humans and animals, were born according to their karma. The ones with good karma were strong and beautiful and wise, the ones with bad karma were poor and ugly and with a lot of desire and hate. Depending on their actions in life they created more karma, and when they died and were reborn, this karma manifested as new situations, good and bad.
Some of the wisest people were able to connect to the higher realms, the worlds of gods and angels, and were reborn there. Also some beings of light came to Earth to teach the humans how to reach the realms of light. This was the beginning of religion and spirituaity on Earth.
Some of the wisest spiritual teachers educated the people about the law of karma, and how their karma was holding them down. Especially the bad karma, the trauma, the evil actions, the primitive desires and the hate and anger were obstacles to liberation from pain and suffering. The spiritual solution was to purify all the karma in ones soul, so it could ascend to the highest realms of cosmic harmony and bliss. When a soul manages to get rid of all karma, it will finally be enlightened.