The metro area, not the city. That extends into New Jersey and Connecticut.
Sure plenty of locals move into the city just as with any city, what sets NYC apart is it draws in people from much longer distances before most of them leave. The elderly population in NYC being relatively tiny.