The earth retains its atmosphere. This is due to the escape velocity being greater than the mean speed of the molecules of the atmospheric gases.