How did Qatar get water?

They take water from the sea and extract the salt from it. Its an expensive process.