Why do pirate ships have three masts?

Answer

Three masetd ships were used by all sailors who sailed the open ocean so for pirates who spent much time at sea three masted ships were ideal. Pirates who sailed, and raided, coastlines preferred fast, sleek, single masted sloops which could out maneuver and out-run large, heavy three masted ships.