Why does the Moon have Craters?

The surface of the moon has many craters caused by the impact of meteors. Since the moon has no atmosphere, a meteor will leave a crater that will last for thousands of years without any sign of erosion.