D avid was in a strong-place, while the Philistine soldiers had their place in Bethlehem.
David was then in the stronghold, while the garrison of the Philistines was then in Bethlehem.