Hoarders/speculators help by smoothing the scarcity and resulting price increases over time. By buying things up early, they increase the price and scarcity early, which gets people motivated to switch to alternatives when they can (and warns people who weren't paying attention to whatever caused the shortage, the floods in this case, of the problem). When they resell later, their stock keeps the shortage and price increases from being as extreme as they would otherwise get without the hoarders.