The population cap for your city is determined by the level of your cottages.  You gain population slowly based on how far you are away from the cap or instantly by using a reserve barracks.  Population is used to recruit troops from the barracks and also determines your gold yield based your tax.