The way this works in particular is by taking advantage of squatters rights. These are ostensibly used to protect people from summary eviction and give them a chance to get their lives together before they're kicked out. Usually they're used to help people who can't pay have 30-60-90 days (law depending) to figure something out.
What these people do is break into a home that appears unoccupied. This could be because you're an investor and are screening tenants, you left for vacation, etc. After some number of days (depending on law) the squatter has "rights" to live there and it goes from criminal to civil. Since you did nothing in those days it's assumed you allowed it. It's exploitation by a class of slightly smarter criminal. Exploitation none the less. Yet, there's nothing you can do about it that wouldn't inadvertently effect the people who actually need the laws to make sure they don't come home one afternoon with their stuff on the sidewalk. That's why as a homeowner it is absolutely important you police your own property, make sure it appears occupied, maybe have friends occasionally visit, etc. Even if you have camera evidence it will be assumed you did nothing about it in that timeframe and it will still become civil. Your house will likely be trashed as revenge and suing a bunch of strung out junkies won't get you anywhere.
These laws have also been exploited when good hearted people lend a couch to someone in need. Stay for long enough, and now you have to go to court to evict them.
Really a shitty situation for people. Especially grandma and grandpa renting out a house to supplement their social security.
In some jurisdictions, the underlying legal philosophy is "Wait a second... You really didn't know you had human beings living on your property? Every person in this neighborhood has a responsibility to know what's going on in their property. The law is therefore not going to lean heavily into your ownership rights if you've been so irresponsible with your ownership that people can just put down roots without your knowledge."
Not unlike car license when pulled over.
I don't understand. If I person takes over your home while you're there, it's an invasion that the police will respond to. If someone breaks into your home and steals stuff from it, that's robbery that the police will respond to. But if someone simply starts living in your home when you're not there, that's suddenly a "civil matter" that the police can't do anything about?