The actual problem is not the same at all. The squatter is unambiguously committing a crime. Their willingness to commit a crime and inability to have their own home is a massive predictor of problems up to and including the total destruction of your property and its sufficiently black and white that local law enforcement given a proper law can act within the hour to evict and arrest someone who has no right to be where he is.
The tenant who is behind on rent is a situation fraught with complexity which should be handled by a judge so that everything can be heard. What’s more having this whole process take at least several weeks is a good thing. I gives people time to come to a resolution to avoid eviction. To borrow money. To get paid and come up with the money. To make alternative housing plans. To make a plan with landlord to pay over time. This keeps families from being put out on the street promotes social stability and well-being. Having matters handled lawfully and carefully is an acceptable burden.
It also doesn’t increase rent because the small downside risk doesn’t magically make your property more valuable.