The way these pirates get so far out from shore in such small boats is simple.
They are carried in larger boats, which dispatch the small boats to attack identified targets.
Now ask me why those larger boats are still afloat.