The vehicle battery provides the charge that starts the engine and powers the accessories. It provides power to the starting system, which cranks your engine, after which the alternator recharges your battery for the next start.
Everything's connected, which means that a problem with one component can sometimes seem like a problem with something else.