A lot of the growth happened from 1900 onwards, when Camden was a few streets away from the rural outskirts, and Hammersmith was on the outskirts.
After that the suburbs exploded. In some areas they stretch all the way out to the M25.
The City of London happens to be one of the smallest, and least populous.
Edit - on rereading this, I realise you may have been referring to the fact that Westminister has 'City' in its name, whereas most others boroughs use the word 'Borough'. I'm not aware of other boroughs in Greater London that are also 'Cities' in that respect.
Within the remaining 21 electoral wards, votes are controlled by businesses (mostly banks and the like), and the amount of votes that each business receives depends on it's size.
https://en.m.wikipedia.org/wiki/List_of_place_names_with_roy...
Greater London is an amalgamation of the neighbouring boroughs that grew and merged into the London metropolis today. Eg, Westminster, Kensington and Chelsea, Hammersmith and Fulham, Camden, etc.
You can see which borough you're in by looking at the street signs.