This factory could afford to upscale because they could sell their product for a much higher price, and pay their workers much more to do so.
However if they had already sold the factories output for the regular price via a futures contract (ie. 1 ton of polypropylene for delivery in June for $2000), then the story would be different.
Futures contracts are widely used as a way to take the risk out of doing things, but the side effect is your economy loses all incentive to be flexible to changing needs.