Before the container, transporting goods was expensive. So expensive that it did not pay to ship many things halfway across the country, much less halfway across the world.
By far the biggest expense in this process was shifting the cargo from land transport to ship at the port of departure and moving it back to truck or train at the other end of the ocean voyage.