Why wouldn't merchant ships simply avoid the Bahamas then?
Why do you presuppose that is why the Bahamas were popular for pirates?