AFAIK, the earliest use of "can" as a noun (long before canning) referred to straight-sided pewter or silver mugs as used in public houses in the 17th and 18th centuries. Things do change.

There was a time we would have felt the same way about non-glass "bottles", but a few years ago I had a young lady absolutely refuse to believe me when I said that shampoo used to come in glass bottles. She couldn't understand why any company would consider that risk acceptable- and, from the point of view of this litigious age, it is a little hard to believe that we were once expected to take responsibility for our own safety.