The technical explanations above are right, as far as they go. But then the sales department gets involved. Consider that .218 Bee, .219 Zipper, .220 Swift, .221 Fireball, .222 Remington, .223 Remington, .224 Weatherby, and .225 Winchester are ALL the SAME caliber. Their barrels are the same diameter, .218" across the lands (Which would be the caliber designation if everybody followed the dictionary definition.), .224" from groove to groove. The cartridges and chambers differ, often by a lot, don't get the idea that I am talking about interchangeable ammunition; but the hole down the barrel is the same.
Lubek Tech, the transition from cap & ball to cartridge was not simple, even in nomenclature. Colt took a barrel blank and drilled a .36" hole down it. Then they rifled it with deep grooves to spin up the ball. Then they reamed the cylinder to be loaded with balls at a press fit. It takes about a .375" ball to seal the chamber mouth and fill the grooves. When they started making cartridge guns, they started calling them by the bullet diameter, .38 to two decimal places. Later cartridge design called for inside lubricated bullets which were of smaller diameter to fit the bearing surface inside the brass instead of outside (Like a .22 LR still does.) They kept the same cartridge and chamber diameter but made bullets and barrels smaller. New products kept coming out and getting new names. Which is why a .38 Special and a .357 Magnum use the same bullet and barrel diameter.