Explanation: A navy reliant on purely sailing ships was actually an innovation. Galleys, modern ships propelled by oars in combat, remained widely used up into the early modern era - depicted are Tunisia (famous for piracy in this era), Venice, France, and the Netherlands as galley-enjoyers. Early sail riggings could not provide reliable speed for combat situations, and speed was especially important in naval ramming tactics - ramming tactics rendered less viable by the increased size (and firepower) of ships with modern-style sail rigs. Sailing ships of the modern type could move a much greater mass, and much faster (though with less maneuverability) and much cheaper (as there aren’t any oarsmen to feed).
England was on the cutting edge of naval warfare in the mid-17th century AD, arranging its navy almost exclusively with sail - I believe (though the period is not my area of expertise or core interest, so if anyone corrects me, they’re probably right and I’m probably wrong) that England only made three galleys in the 17th century - all of which were regarded as a failed experiment.
Galleys remained a threat in the Mediterranean, particularly for piracy, precisely because of their maneuverability - if you choose when and where to attack, maneuverability helps greatly in coming in at a good angle and getting close before boarding. But in a situation of outright war, wherein a ‘civilian’ vessel coming close to your convoy is likely to get a warning shot across the bow, or where entire fleets meet and clash, galleys were no longer viable.

