The story
The general sense is older. It is evident that the sense referring to landing gear synergizes with the sense referring to being aloft and soaring away: the gear being up and away accords with the aircraft and its crew and passengers being up and away.
Etymology from Wiktionary, CC BY-SA 4.0.