I mean from a justice standpoint, squatting is wrong But from a societal standpoint, the laws being this way have a bunch of positive externalities 1. It provides shelter to the homeless, with all the advantages we know that has 2. It provides an incentive to not leave property vacant. Very important in a country with high vacancy rates 1nd a hiusing crisis. Note also that this is done at the expense of investors. Wh…
However after some years, the situation slowly changed: more and more squatters were drug addicts, who ofc couldn't afford to pay rent; also the word spread outside of NL that it was possible to go to Amsterdam and live there for free, so loads of immigrants came with no intention to rent at all.
Apart from that, squatting exposed another problem: the squatters typically didn't care too much about their home or neighbourhood, after all it was not theirs and sooner or later they'd have to move out again. So they typically caused a lot of irritation with their neighbours because of garbage of noise. In the end, squatters in NL lost most of the goodwill they had with the Dutch government, and stricter anti squatting laws are now in place.