Don't take these number too seriously:
To be honest, it was added mostly to make images look more like maps, less like some sort of diagrams :)
On average there are about 6 people per building (a reasonable number for a medieval settlement), but it's chosen randomly for each map.