Necropolis uses Greek components for the dead and a city. The Greek name was associated with a cemetery outside ancient Alexandria before passing through Latin into wider use. A burial ground becomes a settlement in the word’s metaphor.
This view explains the components. They are pieces of one construction, not consecutive borrowing stages.