Why is there water on earth?
Earth is located in a stable orbit in an area known as the habitable zone. In this zone it is warm enough that water can is stable in liquid form while not being so hot that it changes phases to steam. Similarly it is not so cold that all water is found as ice.
Edit: earth is believed to have received its water from water ice via cosmic impacts long ago