Putting patrol-boats out there may deter boarding by Somalia-style pirates, but in this case the risk comes from various missiles and bomb-drones launched from the shore [0]. Even if the the defender has a few fancy anti-missile warships, the attacker could choose the least-covered target from a constant stream of (big, slow) cargo-ships through a ~300km route. [1]