The story behind Jiyeon is pretty simple.
Her parents died in a car crash, and she was left near death. But before passing over she made a deal, one that she wasn't aware of making consciously. She promised to help a young boy cross over to the afterlife, in exchange for her life.
And so, that's how her story fits into place.