In Roman times, wine used to be stored in clay pots because glass was fragile and didn’t travel well. Wine couldn’t be legally sold by the bottle in England until 1860; up till then, it could only be purchased by the barrel. Once you got it home, it was poured into any size or shape bottle you happened to have (if you were lucky enough to have one).
The first glass bottles used for shipping wine had a rounded bottom. They were wrapped in straw to hold them upright and prevent them from breaking. We still see this reflected in the classic bulb-shaped, straw-wrapped Chianti bottle.
And the ubiquitous green bottle we use today? Wine bottles were originally green by default, due to impurities in the glass-making process.