Why do occupied buildings last longer than empty (abandoned) buildings?

Short answer; maintenance.

Most people will close the door during rain, do something to cover a broken window even if they don’t fix it, and try to get rid of insects and rodents. None of this happens in abandoned buildings, and it added up quickly.