Yoga is holding the senses steady
Katha Upanishad 2.3.11तां योगमिति मन्यन्ते स्थिरामिन्द्रियधारणाम् ।
अप्रमत्तस्तदा भवति योगो हि प्रभवाप्ययौ ॥
tāṃ yogam iti manyante sthirām indriya-dhāraṇām | apramattas tadā bhavati yogo hi prabhavāpyayau ||
Translation
This firm holding of the senses is what they call yoga. Then one becomes watchful, for yoga can be gained and lost.
In simple words
This is one of the oldest uses of the word yoga, in an Upanishad: it is about mastering the senses, not about the body's flexibility.