You can see this more easily by imagining what would happen if the earth were flat. The moon would still travel in a horizontal line above the ground; but because it’s also falling, it would come closer and closer to the flat earth until it collided.