The Philistines had conquered all of Judah in that area?
Judges 15:11 “Then three thousand men from Judah went down to the cave in the rock of Etam and said to Samson, Dont you realize that the PHILISTINES ARE RULERS OVER US? What have you done to us?
IOW, as far from the territory of the tribe of Judah as it was possible to get.
The Israelites in this part of the land had their own problems, mostly with Syrians, but I doubt they had much trouble with Philistines.