The toilet paper shortage was exacerbated by hoarding, but that didn’t cause it. A lot of the supply of toilet paper is designed for industrial use. (Office buildings, etc.) People who usually did some of their business at work did all of their business at home during the pandemic, increasing demand. And there wasn’t any fast way to repackage the paper for home use. It was a problem with paper towels, too.
That’s why the case i bought in the middle of the pandemic was a case of giant rolls with narrow interiors (“spoolless”), because there was a glut of that stuff on the market. I happened to have a holder in the bathroom off my bedroom that was easy to retrofit to accept the industrial stuff.