Well they knew there was definitely a problem, despite not knowing why. For instance malaria getting its name because they thought the illness was because of 'bad air'. However for a long while the tropical parts of Africa were known as the 'White man's graveyard' and people only went there...