And does what? make more supply appear from thin air?
EDIT: Now, if you suspect price gouging, that's different. wtfrmyinitials was referring to a genuine shortage, though.
So the only way to "solve" the issue is to add more supply, and "price through the roof" is as good a way to get more supply (and possibly better) as the government mandating more production.
The only change to resource allocation we need is a psychological one: specifically, to accept the idea that prepping, even at a very small level, is not insane.
If there is gouging, that's definitely not the case.
Not to mention people are less likely to unnecessarily hoard years worth of supplies and prevent others from using it if it's more expensive.