Likely a reflection on that period's monarch situation in 1717-1718. Queen Anne is referring to the British Queen that preceded the King ruling at that time, George I. Anne was the last Stuart House ruler on the British throne. After her death, the rule of the British throne went to the House of Hanover. Not everyone was satisfied with a king coming from central Europe to rule Britain. Others still wanted the descendants of James II to be on the throne (see the Jacobites). Pirates had a tendency to show sympathy to the Jacobite cause.
If you want to know more about pirates and Jacobites - see Fox, E. T. “Jacobitism and the ‘Golden Age’ of Piracy, 1715-1725.” International Journal of Maritime History 22, no. 2 (December 2010): 277–303.