Artists oil paints had been sold in France in lead tubes since the 1850's - prior to then artists usually made up their own colours.
One of the colours sold in lead tubes was a rich brown - Mummy Brown - which was made up of ground up dead Egyptians. In fact in the 1870's the pre Raphelite artist Edward Burne-Jones was so shocked when he discovered the origin of Mummy Brown, he buried his tube of the paint in the garden and foreswore ever using the paint again.
However the idea of putting toothpaste in tubes took a little longer.
In 1870, toothpaste was still sold in ceramic pots