When aircraft land at night the pilots use the runway and taxiway lights to guide them. They can't do that if it's foggy.
The automatic landing system's ground equipment needs a clear line of sight to the aircraft it's guiding. On a normal day, planes are stacked one behind the other, and they block the auto system of the plane behind them. Instead, they have to reduce the number of planes approaching the airport to allow this clear line of sight. Flights have to be cancelled to permit this increased spacing between planes on approach.
Ferries too use lights at night to guide them. And they have the advantage of being able to stop if they need to. (Unlike planes!). Radar is used for navigation, but if it's really foggy and they can't see the dockside when arriving or leaving, then it's deemed to be unsafe, and they won't sail.