Well, perhaps in this case a crafty defense lawyer might argue that the homeless person's tent was illegally situated; it was not a "legal" dwelling and, therefore, its occupants cannot be protected under the law as such. Whereas in the previous case the tent was pitched in a campground secured via legally-acquired permit and, therefore, it's legally recognized as a dwelling (or something like that...you know the law is all about loopholes).