Why doesn't the moon have an atmosphere?

The moon is very much lighter than earth, and has so much less gravity that all the gas in the atmosphere escaped. and it does not have any people because there is no space on the moon!!