See with girls and their period they become extra fertial. So a few days before their cycle till the end of their cycle they have a higher chance of getting pregnant. They can get pregnant at any time of the month but the chances are not as high. So you lucked out by not getting her pregnant while she was on her cycle.