For anyone genuinely wondering why they don't do the implied thing and convert it to residential, the answer is that the San Francisco permitting process to build even as little as a single-family home on an unused lot can often require paying someone full-time to hassle the city government literally every single day for several years straight, and then if the NIMBYs persuade the board of supervisors against it the project gets denied anyway.