The story
Use of the phrasal verb, with adverb out, is analogous to run out. The phrase was likely spread by the Boy Scouts of America, where it is used largely in sense 1 to refer to turning eighteen and becoming ineligible for the youth program.
Etymology from Wiktionary, CC BY-SA 4.0.