They were seeking relief for any kind of ailment, and certainly if there was warfare on the water, there were wounds among other injuries that needed treatment.
Blackbeard's efforts to keep up his crew's health didn't change the pirate's own fate when he was hunted down in November 1718 by the Royal Navy.