It is a building which the dead bodies are taken there to understand the cause of death by using post mortem examination. It is not in a hospital.
Most post mortems (autopsies) are carried out in mortuaries, or morgues. And most of these are attached to hospitals, but are not necessarily.
"The City Morgue" is where people who didn't die in hospital, but who died under suspcious circumstances, are taken.