Usually when the brake and battery lights come on together, it's a sign of a charging system problem. Your alternator is probably failing. If you have access to a multimeter, you can test my suspicions. With the car running you should see over 14 volts at the battery terminals.
Assuming I'm right, you'll want to catch this one fast, or you might end up stranded in a random parking lot with a car that won't start (or stay started, since the battery is only for starting, while the alternator's what keeps the car running). I speak from plentiful experience on that point.
