This poor thing was the pawn of the magnates of England who were rummaging around to try to find a suitable, for them, monarch to prevent the rightful king from coming into his own.
Anne had, I think, thirteen children and all predeceased her. The result of all this back-stabbing was the Hanoverian Dynasty and George I.