It is possible that a battery can cause a car to shut off while driving. Corroded chemicals in the battery are the most common reason for a bad battery in a car. The alternate must use additional electrical power to keep your car running when your battery is weak. The extra stress can lead to the car shutting down suddenly while driving.