So I read a few things about it. I love the internet! It is called "Sabering" a champagne bottle. Apparently it is done "to show off " or "to impress people". Funny.

As NCSailor said, It has nothing to do with nautical tradition.

I found this at https://kazzit.com/wine-blog/what-is-the-origin-and-history-of-sabering-champagne.html

Legend has it that this started with Napoleon Bonaparte and/or his men. As the victorious soldiers rode back home, people usually threw bottles of champagne to them as a form of celebration since Napoleon has declared several times that taking some champagne is necessary either in the euphoria of victory or in the trauma of defeat.

While on their horses, it would be cumbersome and difficult to begin to unwrap the foil and open each of them manual uncork the bottles of champagne. So, one of the soldiers successfully sabered his own bottle of champagne and others took the cue because of the convenience involved.