It depends on whether the input voltage is DC or AC. If it's DC, it bolsters the input voltage during spikes in load current; not an issue for a battery charger, it will deal with any voltage sag. If it's AC, it also provides filtering.I found this circuit on a page and i want to tried but i dont get why the capacitor is there