OK so she doesn't remember how she died, and she's apparently the host to some super evil spirit. My theory is that she actually didn't die, but instead became host to this evil thing, which has kind of made her a spirit. So when they exorcise and defeat it, she returns to her corporeal body!