Suppose you cannot keep liquids down and can't replenish your electrolytes with regular water or sports drinks. In that case, you might want an IV, as this will give your body fast hydration that bypasses your stomach, which could still be upset from the vomiting.