"This is what we call a metonymical extension - where a word extends its meaning to something contiguous with its original meaning (and may or may not eventually abandon its original meaning) e.g. "glass" means both the substance and something such as a drinking vessel made of glass."