The story
In the sense of skills, a now figurative use that originally referred to literal ropes. The phrase “he knows the ropes” written on a seaman’s discharge meant that he was inexperienced and only familiar with a ship’s principal ropes.
Etymology from Wiktionary, CC BY-SA 4.0.