Runners stretch their legs while they’re waiting for the race to start.
“Their” is, in this case, speaking of ownership. The legs belong to the runners.
“They’re” is a contraction of “they are”. “They are waiting.” No possession is indicated in them waiting for the race to begin.