Why is there a current when the battery is connected to the capacitor