So all the landlords in Bercelona conspired to do this somehow?
The real reason buildings would stay vacant is either ownership attempting to charge above market for rent, or land speculators who are looking to hold and flip, without developing it enough so it can be used in the meantime.