Bismihi ta'ala
If this was accidental, and not in her control or on purpose, in that she was not "masturbating", then there is no sin and she does not need to pray for forgiveness.
Of course, if she knows that doing certain things while exercising, or some kind of friction, etc, would sexually arouse her and lead her to reaching climax, then she must avoid that.
And Allah knows best.