Imagine that you have a city with size 2 and with not enough food in its progress bar to sustain the second citizen. If you start a settler, you can starve the city that it will not matter as long as you are building said settler.
Now, when you finish the settler, the city size drops by 1...