They came there to look for water to drink in the location which was a swamp  near the sea.