I found this info from thoughtco.com
The ceremony of christening new ships began in the distant past, and we know that Romans, Greeks, and Egyptians all held ceremonies to ask the gods to protect sailors.
By the 1800s the christenings of ships began to follow a familiar pattern. A “christening fluid” would be poured against the bow of the ship, though it was not necessarily wine or champagne. There are accounts in the US Navy records of 19th century warships being christened with water from significant American rivers.
The christening of ships became great public events, with large crowds assembled to witness the ceremony. And it became standard for champagne, as the most elite of wines, to be used for the christening. The tradition developed that a female would do the honors and be named the sponsor of the ship.
www.thoughtco.com/ships-champagne-and-superstition-1774054
Here is a link to the complete article.