>>538440425
The game explains it soon after but
they just implanted her memories onto a new brain. Exia and Rapi then have a conversation about if that means she is really Exia or not and then the devs decided they didn't like that, pretended that never happened and act like Exiia frying her own brain while Triangle shot her only caused minor damage and she just got better and is the same Exia.