He's not - he's comparing them to two of the densest cities in the Bay Area (San Francisco and San Jose). The New York boroughs each have a bit less than half the land area of their Bay Area equivalents, but have much higher populations.
In fact, now that I'm reading up, the closest equivalent to a borough is a county of the Bay Area (each borough was originally a county, before the NYC consolidation of 1898).