The math is dead simple: it seems that the frequency of planets able to support life is roughly one percent. In other words, a billion or more such worlds exist in our galaxy alone. That's a lot of acreage, and it takes industrial-strength credulity to believe it's all bleakly barren.
Even if the Moon didn't exist - even if it had been vaporized billions of years ago by cantankerous Klingons - there would still be (somewhat lower) tides raised by the Sun. For creatures dependent on the oceans' ebb and flow, life could go on.
The usual metric for whether a planet is habitable or not is to ascertain whether liquid water could exist on its surface. Most worlds will either be too cold, too hot or of a type (like Jupiter) that may have no solid surface and be swaddled in noxious gases.