Why doesn't water cover the entire surface of Earth?

I have no idea why this question suddenly popped up in my head as I have never even given it a thought before. I wish I could identify my question better.