This is what is known as "anarchy of production" which is a key feature of capitalism. A global crisis like this is not compatible with our existing economic systems.
Pay ten bucks per mask - and soon enough in every basement there will be a masks factory.
At least until OSHA comes after them.