What caused the trend toward city life in the 1800s?

What caused the trend toward city life in the 1800s?