For the same reason governments put price controls in place during catastrophes. Because they never studied enough or believe their voters never studied enough to understand basic economics. Likely the latter. Governments believing their people too stupid to understand the right move is often the reason for implementing dumb measures.
A lot of it is that people get far more angry at price gouging than a shortage.