I believe the epidemic of yellow fever started because lack of sanitation and poor medical care. People did not know correct sanitation issues and they had not yet discovered germs and how they spread. The doctors were not so great (don't get me wrong sometimes they helped). Doctors did not have right tools and medicine to cure patients.
Hope this will help someone! ;)