Two possible reasons:
1. No room to build, because everything around the city is swamps/mountains/rivers. Remember to hover over tiles, there is a bug that makes rivers look like plains.
2. There another city so close that you cannot build any buildings, but you can still upgrade. If a city has been snaked too far, especially by absorbing resources, it can come so close that it will stifle another city.