More accurately, it is Talk Like Robert Newton Day.
He gave Long John Silver a West Country accent in the film of Treasure Island and so that's the accent people associate with pirates, whereas in reality they came from all over the place and spoke with many different accents.