The story
Initially US colloquial, of unknown origin. A connection with the behavior of caged prisoners (wary and closed-lipped) and caged animals (wary) has been speculated. If so, by surface analysis, cage + -y.
Etymology from Wiktionary, CC BY-SA 4.0.