Fact 1: gravity pulls objects towards planets. 
Fact 2: Because of gravitation, objects that are on or near the earth are pulled toward it.
Water stays on earth's surface because of gravitational pull.