How does Earth keep its atmosphere?

Earth's atmosphere is only 1/1,200,000 the mass of Earth itself. So it is a very thin skin surrounding our planet. How does Earth hold on to this thin skin of atmosphere? The answer is gravi...