I'd see as both Spain and France has a housing crisis, the squatting is a symptom of that problem.
Guess the difference is that in Spain if you detect them within 48 hours of them entering the property, you can "easily" and legally remove them with the help of the courts and police.
But once you're beyond those 48 hours, things get a lot harder.