I've always (n = 5) had good landlords and I think the key is selecting landlords that prioritize having good tenants over maximising rental yield. I've had the privilege of lots of external legible markers of success that make me appear as a "safe" candidate for lots of landlords.
2 of the 5 landlords lived in the same building where I lived alone and we became decently close over time and 3 of the 5 we rented the whole house but we were a group of grad students/working professionals that were an attractive demo.
As with anything on the internet, "This went mostly fine" is a perspective you rarely see so the prevalence of problems appears grossly exaggarated.