"fought their way through the army of the Philistines"
This means that he poured out the water as an offering to Yahweh.