Let's say the weather at your airport is IFR but clear a few miles away. While the VFR-only pilot will have to wait for the weather to improve, the IFR pilot can depart on an IFR flight plan, then cancel the IFR flight plan when they are in VFR conditions.