Lots of stuff on batteries.
The average battery is reliably good for about 3 years. After that, you're on borrowed time and should consider yourself blessed for each additional month of reliable service.
If you shell out the bucks for a higher quality brand name battery with a 5 year warranty, then it should be reliable for 5 years, after which you're on borrowed time.
Once you approach those times on your battery, you should be budgeting for a preemptive replacement. DON'T WAIT FOR YOUR BATTERY TO DIE AT THESE AGES.
Why, you ask?
Because a dead battery is horribly heavy load on an alternator, that's why. You risk damaging your alternator and compounding your problems. A damaged alternator, in addition to being an added expense, also means you could damage your brand new battery you just bought.
SO...preemptively replace your old battery AND at the first sign of battery problems get it checked and replace it if necessary right then.
BATTERY DAMAGE:
If you kill your battery (your battery terminal voltage drops below about 10.5 Volts), you've damaged your battery and, contrary to what some people believe, that damage CANNOT be reversed.
Excessive discharge affected the chemistry of the battery, causing sulfate crystals to form, and once formed these crystals are permanent. No amount of charging will reverse this.
Now, of your battery was in otherwise good health, this may only mean a small reduction in battery capacity that you may not notice...but the damage is there, nonetheless.
If you're at, or past, your service life for your battery and this happens...budget and replace it.
REPEATED JUMPING also runs the risk of damaging your battery/alternator as well. At the very least, you're not paying attention to what you're car is telling you by continuing to live with a problem. If your jumping a lot, go to a parts store, have them check your battery/alternator (it's free), and replace as required.
ELECTRONICS...
Modern cars may be more finicky on battery voltage than cars of years gone by. This is due to their electronics. In past years there were several things people used to do/check to see if they had a battery problem or not. Like check starter operation with the headlights on, for example. In a newer car, you may find that while a battery SEEMS strong enough because the engine cranks well, the battery may not actually be strong enough to power the on board electronics with the proper voltage at the same time.