You are super overthinking it. Some people just-- have an innate ability in my world, and dying in a weirdly traumatic way somehow unlocks it. My former guardian used to do research on the whole topic but I only half paid attention to him. I've tried to avoid dying again just in case, but I can bring others back to life.