In the case of the ac current the source is connected to the negative terminal of the battery and when the current start to flow ac changes the polarity and the positive half cycle cancel outs the negative half cycle hence there is no supply of energy in the battery repeating this process also can damage the battery.