From Black Death to fatal flu, past pandemics show why people on the margins suffer most