Many countries especially in continental Europe have strong pro-tenant rights. Often the rent contract cannot be terminated by the landlord, only by the tenant, which can make it more profitable to leave property empty vs renting it out. (When a tenant-occupied property is sold, the new owner in some countries cannot terminate an existing rent contract, which makes the property less valuable on the market vs empty properties.)