Abandoned places make good settings for fiction because the empty, unused space evokes an unnerving feeling in the viewer and a sense of mystery. There are many types of abandoned places, and they may have been left five years ago or five centuries ago. Or even five minutes ago, so that the coffee cups are still warm. Was the place shuttered in a systematic way, or are there signs that everyone cleared out in a hurry?
Abandoned areas often attract squatters, homeless people, drifters, and low-tier criminals, as you can bunk there, do illegal activities or store illegal items without anyone asking too many questions.
It also creates suspense and creates the surprise when you discover clues that it may not be completely abandoned.