Flashback was when she said: "I want to become a real medium, like you..." and maybe he thought like: "oh girl, you dont want to become a medium like me" (i mean the method). Probably they did smth with him at the shrine, and that's how he became able to see the strong ghosts like that lady...