Start Hoarding When Others Are Panicking

People start hoarding when they panic. Is this irrational or completely rational? Game theory might give us a clue