I think it's like a curse, she prayed to god to let her die or repent for her sins and the god erased her memories and made her return once more to do things "right", the emperor is trapped in the "curse" with her because he's to blame for the things she had to do.
I'm just confused on how she regressed