While not very common, it is also a thing in Spain. "Alquiler con opción a compra" (renting with the option to buy), lets tenants live for a predetermined time at a place. When the lease ends, they can choose to buy the place with a discount equal to their rent payments up to that moment.