Historically people had to work on a farm! The vast majority of the historical population lived close enough to their fields to walk to it every day. Sure Rome had a million people 2000 years ago, but that was only possible because many many millions of people (often slaves and thus not seen much in history) who didn't live in Rome and produced a surplus of food.