The Moon has no atmosphere because its escape velocity (2.38 km/s) is much lower than the root mean square velocity of gas molecules at lunar surface temperatures. Light gas molecules (like hydrogen and helium) easily exceed escape velocity and escape into space over geological time. Higher mass molecules might be retained, but the Moon lacks significant sources for these gases.