This does not happen in cities where it's easy to build more homes in desirable areas. They have lower price-to-rent ratios because prices are determined by the value of the rental income stream. We can make it easy to build more homes in every city by repealing laws that push lower income families out of desirable places—that's what density restrictions were invented to do.
Also, it's risk. They can fuck up the place, and if their rent is not much, then the insurance will be more than the rent.
If the tenant refuses to move out (despite the landlord serving notice correctly) you can usually get that resolved in 2-3 months at most: 1 month to get a court date, 1 month to give the tenant time to comply with what the court orders, and 1 month to get a bailiff to physically remove them (if it comes to that).
(Source: I'm from London, and I've signed several leases as both a landlord and as a tenant. I've once gone to court to evict a tenant who had stopped paying rent, and the matter was resolved in <2 months from first filling in the court paperwork)
It would be more of a nuisance - the tenants need registering, then you have to pay taxes, for what gain?
It's not even worth their time to do that much, apparently, since the houses in question are sitting empty in a high-rent area.
This causes it to make more sense to not rent it out.
Situated as it is, in Britain, London is a long way from being such a city. More's the pity.
Some investors buy flats and keep them empty and in bubble wrap for a couple of years until prices increase, then sell. Not "buy-to-let" investors, but "buy-to-sell"!