My understanding is that the Coast Guard boarding right is left over from smuggling, bootlegging, and pirate days. Legislators have never changed the laws.