General statement because some of the comments are referencing the ship's pilot.
The ship was being piloted by a harbor pilot.
Harbor pilots work for the port authority. They specialize in navigating that particular port.
Things can still go wrong, because floating skyscrapers, but it means you can cross off lack of familiarity with the route.