I would say that it has to do with property law. The people occupying the house, have possession of it. Any that disputes their claim has to prove it.
Remember Squatters Rights, and this is a form of Adverse Possession. Where the real owners can legally lose their property if they allow people to occupy their property for the statutory time, and statutory requirements.