Not every eviction is because someone didn’t want to pay their rent or couldn’t keep a job. There are the rare occasions where someone is forced out of a home by an unethical landlord. Years ago I gave notice, paid everything, and moved out without any issue. Was a couple years later I found out that the landlord, for some unknown reason, filed an eviction on me after I had moved out the right way. I was never served papers, didn’t even know about it until I tried to rent another home a few years after.
So while probably 95% of evictions are people you wouldn’t want to rent to, sometimes it doesn’t hurt to find out the details and look at their other factors and rental history. If they have 40 years of good rental history and one eviction, they might not be that big of a risk. You can always charge a higher deposit and ask for first and last months rent as well, that way if it comes to an eviction you lower your risk of loosing money.