I suspect it's indeed a nautical term, but "ship of the line" and "shipping line" have what I assume are two entirely different meanings for the word "line." The Victory was a ship that was capable of joining the line of battle, while shipping "line" is quite different. I think.