Every world has its own way. Gods are just the first law controllers of the world. Such worlds form realms. And realms have their gods. Such realms form universes. And like everything else, universes are also subjected to their gods. And then there is the god realm. These gods are the first gods who were born with the universe. Their powers helped all universes to flourish. And as time went on, the universes became independent and Supreme Gods had no job to do. In simple words, they became useless.
And when gods are not needed, they dissipate. This fate is known to them since birth. That's why gods are emotionless. But as they dissipate, they turn into countless specks of magic aura and scatter throughout the magic verse. This magic verse is the realm that is a superset of every realm. Because magic may or may not exist but it will continue flowing through each world. It just depends on the inhabitants to understand it.