The thermal speed of hydrogen is much larger than oxygen. Therefore, a large number of hydrogen molecules can acquire escape velocity than that of oxygen molecules. Hence, hydrogen escapes faster from the earth than oxygen.