This article by Ryan Petersen is a good history lesson on how shipping containers came to be. Here is an excerpt:
The idea for containerization came from a trucker, not a shipper. Malcolm McLean started out hauling empty tobacco barrels with his family in North Carolina in 1935. At that time, entire trucks would drive onto ships, wasting both a ton of potential cargo space, plus a chassis that could be on the road moving goods. McLean developed plans to use the so-called trailerships for travel from North Carolina to New York, but U.S. regulations didn’t allow one person to own both a trucking and a shipping company at the same time. So McLean did what any innovation-minded entrepreneur would do: He dumped the trucking company, took out a $22 million loan, and, in January 1956, bought two World War II T-2 tankers.
The magic of shipping containers is that they created a standard. Now all of a sudden you had standardized boxes that were intermodal. They could fit on ships, rail, and trucks. Ryan refers to containers as the "unsung hero of logistics."
He also likens them to the HTTP standard that helped give us the internet that we know today. Before HTTP, computers could only communicate with each other if they were on the same local network. Now we are, of course, connected globally.
But while containers standardized a part of our physical infrastructure, there's a lot that remains fragmented and manual: