The story
Possibly borrowed from sailing jargon where "stay" refers to a rope, wire, or rod which runs fore-and-aft along the centerline of a sailing ship from mast to deck, or to another mast, and serves to stabilize the mast.
Etymology from Wiktionary, CC BY-SA 4.0.