Pandemics' historical role in creating inequality