If your battery light is on but alternator is charging, there are a few potential causes. First, your alternator may not be charging properly. Second, there could be an issue with your battery, such as a loose connection or low electrolyte level. Finally, your vehicle's electrical system may have a problem, such as a blown fuse. If you're unsure of the cause, it's best to take your vehicle to a mechanic for diagnosis.