Where precisely does air end and space begin in the sky and how can air and space be separated from each other at that precise point and wouldnt space suck all of the air away from the earths surface?

Where precisely does air end and space begin in the sky and how can air and space be separated from each other at that precise point and why shouldn’t space suck all of the air away from the earths surface?