If letting was illegal the cost of housing would move to reflect that.
Possibly to the point where a mortgage would be cheaper and easier than a rental is currently.
Governments could set themselves up as a monopoly landlord for those people unable to afford even cheap homes.