Chains of a god
Even gods can suffer the consequences of their actions. These consequences can range from destruction to eternal imprisonment. There are entire universes dedicated to containing some of them. You might wonder why not just destroy them, it is simple. Because some of these gods can tie their own essence to the essence of their creations and thus destroying them would entail destroying an unimaginable amount of lifeforms just to punish their creator. Untying the essence of the creations of a deity from the essence of itself requires the god to be weakened to the point that it cannot maintain this bond any longer. This process must be carefully done, it is slow and painful. But if it goes wrong the beings tied to the divinity will be destroyed regardless. So the Supreme order of Ifrayir opts for imprisonment in these cases to slowly weaken and eventually safely destroy the divinity.
After all, a child should not suffer because of the actions of their parents.