it is packaged in case during transportation the lid opens or the packaging breaks so the toothpaste wouldn't get on anything. As well, in the carton, no one can squish the toothpaste
to prevent customers from opening and squeezing the tubes. There is one toothpast that is packaged in air squeeze metal can, but it think it is for Dentures. and it is packaged so it can't be squirted.
For ease of handling & shelving, to prevent damage to the tube, to provide space for ingredients and advertising.