They're supposed to fill the gap for people who can't afford to buy, or for whom it doesn't make sense to do so (i.e. people in town on a temporary job).
The problem is that "landlords" these days are more towards the class of "investors" who expect rents to cover the cost of their mortgage plus additional profit