His computer probably connected to the ship's network.
We had a problem where I live. I am near the US/Canadian border, and sometimes our early cell phone calls would bounce to a Canadian tower and we would get billed for roaming charges, long distance, etc.