Didn't you ask this question recently in another thread?
If the capacitor is polarised and soldered on the battery wires correctly (plus to battery plus) it is used to store a bit of charge which is released abruptly to compensate the battery voltage if it is momentarily depleted during hard acceleration or brake. Otherwise, no idea.