My understanding is that the moon was created a long time ago when Earth was hit by a big asteroid.
The debris then agglomerated into the Moon, which happens to be orbiting at the exact speed required to neither crash back into the Earth, nor escape into space.
Having the exact correct speed seems extremely unlikely. Yet, our moon is there, and many other planets have moons.
Are these just the few survivors out of thousands of events that didnt have the « goldilock » speed?
2022 Edit: I got my "ah HA!" moment where everything makes sense after playing 10 minutes of the tutorial of the "Kerbal Space Program" game. Highly recommended.
Short version: Imagine "soccer ball sized" earth with no atmosphere . It is "soccer ball sized" because I want to make sure nothing collides with it, but it is still very heavy. It has no atmosphere because I dont want stuff to be slown down by the atmosphere.
Now imagine you are a few hundred kilometers above that soccer ball and you throw a baseball in any direction.
The baseball witll orbit the "earth" and the orbit will have some oval shape. After every orbit, the baseball will come back to the exact same point and speed/direction relative to the earth.
The speed you pick doesnt matter: it just impacts how far the baseball will travel before coming back. There is no "perfect" "goldilock" speed equilibrium speed you have to launch the ball at.
If you throw the baseball super fast and you are relatively close to the soccer-ball earth, then two interesting points in the orbit are
- where you are relative to the earth (ball travelling super fast, but low altitude/gravitational energy) and,
- the furthest point from the earth (ball travelling much slower as it had to "climb", but high altitude/gravitational energy).
(aka good old energy conservation)