In a pandemic, prices go up, rightly or wrongly, because there is an increased demand. This price scales as the difference between supply and demand grows, in order to decelerate how fast the shortage occurs relative to the speed of creating the good. The price ceiling just means the shortage happens immediately.