

She feels lonely because of her breakup. You are something safe and trustworthy.
She is in emotional distress and wanted you. When she knew she could get you she through about all the things that can go wrong and peddled back because she is scared to loose you as a friend or make it awkward.
Jesus Christ, just meet in the middle.