As a counterexample, I've lived in ten different rentals over the past 18 years, and I have always gotten my deposit (minus reasonable cleaning fees, and in rare instances the cost of damage that was legitimately my fault) and any extra rent back at the end. Sure, there are shitty landlords out there who screw over their tenants, but it's not universal.