Shortages are not a result of frantic buying but they are a direct consequence of the lack of items being produced. During a time such as the COVID-19 pandemic, it is a must for factories and companies to realize that people are going to buy more quantities of non-perishable items and sanitary products. Therefore, it was their responsibility to recognize this and produce more such products before-hand. As COVID-19 raged in China during December of 2019 and into 2020, it became evident to economies around the world that many logistical issues will arise from such disruptions. 
They also witnessed a rise in demand for certain products such as hand sanitizers. Yet, factories did not heed these early signs and produce more of these items. Just as predicted, when the pandemic intensified in countries around the globe, consumers' preferences and demands also increased and shifted. However, economies were not ready to meet consumer demands which lead to shortages. While stockpiling added to this pre-existing problem, it was not the ultimate reason that shortages occurred.