While charging/discharging a capacitor, there are charges moving towards/away from the capacitor which ensures current flow in a circuit.