Containers increase the potential wind load on the ship, which needs to be balanced by additional weight. Ships do have ballast tanks, but you can't just load a ship up with empty containers and send it off. If you want a full load of containers, you need to put something in the containers.