The reason the Moon does not hit the Earth despite the Earth's stronger gravity is because the Moon is in orbit around the Earth. An orbit is a balance between the gravitational pull of the object being orbited (in this case, the Earth) and the forward motion of the orbiting object (the Moon).
The Moon is constantly falling towards the Earth due to the Earth's gravity, but its sideways motion keeps it from crashing into the Earth. This sideways motion is known as its orbital velocity. The Moon's velocity is precisely balanced with the gravitational force pulling it inward, creating a stable orbit.
In simple terms, the Moon is continuously "falling" towards the Earth, but it's also moving sideways fast enough that it keeps missing it. This balance between the Moon's gravitational attraction and its forward motion allows it to stay in a stable orbit around the Earth.
It's worth noting that the Moon's orbit is not a perfect circle but rather an ellipse, and its distance from the Earth varies slightly over time. However, the same principles of orbital motion apply, keeping the Moon from colliding with the Earth.