Cysts produce HCG, which is what the pregnancy tests test for. She had enough HCG in her pee to trigger a positive test result. It's common for that to happen. The few times I've taken a pregnancy test, it addressed false positives with cysts on the box.  It's not likely she was ever pregnant at all.