They can very easily make this mistake in the dark, especially when warships have the capability to rig "deceptive lighting" to make the running lights appear as though it is another type of ship such as a tanker, oiler, cargo vessel, etc. etc.
I am certain this is the case.