Why were so many lives lost building the Panama Canal?

Some of the workers died from accidents. But the most common death was tropical diseases such as Yellow Fever and Malaria.