The story
The original sense, now obsolete, seems to have been that of brief encounters. The subsequent nautical sense then gave rise first to the abstract sense (indicating a hazardous situation) and later, by physical analogy, to the aeronautical sense.
Etymology from Wiktionary, CC BY-SA 4.0.