That's because they can employ workers from various low income nations (especially if English speaking) for cheap. No pesky environmental regulations for the fuel quality and resulting pollution either.
Compare the labor costs of shipping from one us port direct to another us port (requires a us crew) and a foreign port to a us port.