Improvements in health and sanitation made them more attractive to live and work in