Yeah, I don't really understand this whole "squatter's rights" business. Can someone explain how that is at all legal?
Squatter's rights are something different.
In the UK, you have the right not to be harassed in your home. If you find a building, and are able to gain peaceful entry (e.g. through an open window or an unlocked door), and you then secure the building - then you are able to call it your home.
As it is your home, you are not allowed to be harassed or intimidated by anyone, and they commit a crime if they do so. Similarly, no one is allowed to break in (except on order of a court of law).
The landownder /building owner or manager, can ask a court of law to evict the occupiers - but until then, the owner is not allowed to interfere with them - e.g. by disconnecting utilities (even if the owner is paying the bill), causing a disturbance, attempting to gain entry, etc.
This is a real problem for big landlords with many properties, where some might be empty - or be being renovated. As, even if the property is alarmed, and the police attend in response to the remote alarm warning - if the property is secure when they arrive, and they can find no evidence of forced entry - then the police must let them stay. Not only that, but the property owner can be forced to disable the alarm, if it causes a nuisance to the new occupiers!
--
Squatter's rights are even more extreme - but very rarely used. If squatters occupy the land or property continuously for 15 years, and the landowner or manager has made no effort to evict them in that time, then clear title to the property passes to the occupiers.