Panic buying makes people feel in charge of the situation, while seemingly mundane measures like hand-washing, which are actually impactful, seem ordinary.
The problem comes when people overbuy in their over-panicked state of mind (irrational stockpiling), making the shortages worse than they really are.
Speculators also take advantage of panic buying and raise prices of essential items like face masks, forcing companies to take appropriate measures.