It's commonly believed that this phrase originates with sailors and how important ropes are when navigating wind-powered ships. Ropes, or lines as they are sometimes called, are a common material to find onboard sailing ships. Many of these lines are attached to the sails of the ship and are used to manipulate the shape of the sail, which in turn, impacts how the ship moves around the water.