The Plague Doctor's costume was designed to protect you from what was thought of as "evil" smells or bad air which was seen as the cause of infection at the time. This is now known as the medically obsolete ‘Miasma theory’.