Auto-translated
They appeared after the cataclysm. Regarding the gods – well, after the cataclysm, many ancient entities turned their attention to the world, which was now open for interdimensional travel; some of these entities, being gods, established their religions in the new world.