Thanks to things like planetwide bottlenecks through specific canals and locks and design of certain ports, approximately all container ships are within a couple meters of one of only a handful of size buckets, several of which are fairly close to each other besides. For example, a large fraction of the world's container ships are sized to be within a meter of fitting into chinese port facilities and the suez or panama canals. Because these dimensions include the depth of the water as well as the length and width of the ship they also limit the total volume of water which is available to be displaced, which puts a limit on the total mass that can be floated. As a result, "a container ship" is actually a fairly tight and predictable specification of a ship's maximum mass!