I assume you're speaking of a "low battery" light on a car...if so, it's because either a) your battery is failing, or b) your alternator is failing, and not recharging the battery. Check the belt that runs the alternator, make sure it's fairly taut. It's also easy to check a battery, most any auto parts store will do it for nothing.
For What!
Disconnecting the battery cable for a few minutes will reset the check engine light. If the light comes back on you will have to get the issue fixed or it will keep coming on.
it still may put some voltage to keep the car running have it tested
low on brake fluid top off
check if the alternator belt is on it is probably after coming off
Why would battery light come on then go off
I have 2002 intrepid that does the same thing this week the light came on and does not go off volt meter shows 14. volts while the light is on. put a new battry on didnot help.
My lights were coming on when my alternator was going out. Test your alternator and charging system and replace accordingly.
Take off the negative battery cable and hook a test light in between the cable and the battery post. If you have a drain, the light will be on. Start pulling fuses until the light goes off and when it does go off, that is the thing that is draining the battery. If no fuses affect it, take the altermator wires off. If the light goes off then, the alt is bad,.
Breather tube to allow gasses to escape from the battery
Take it to Autozone and have them read the check engine error code. That's where you start.
Believe it or not. ADD COOLANT>
Dead cell in the battery, or parasitic drain from a light that is on or a relay that is stuck.