The entire strip is militarized by Hamas
The Palestinians elected a party that fires missilies from residential areas and hides bombs in schools effectively making the entire place a military zone. Gaza is very small and Israel, logistically, has to hit some targets.