Moon has no atmosphere because
It is far away form the surface of the earth
Its surface temperature is 10°C
The r.m.s. velocity of all the gas molecules is more then the escape velocity of the moon’s surface
The escape velocity of the moon’s surface is more than the r.m.s velocity of all molecules