The battery is used to keep a small electrical current flowing though the motherboard so that the bios settings are not lost for the next time the computer turns on. If the battery were to run dead in your computer for more than a few hours you would lose all the saved settings in the BIOS.