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