Car batteries last on average of 4 years and if your battery reaches 4 years of age you should go ahead and replace it as preventative maintenance because after 4 years you risk having a dead battery and being stranded somewhere.
I replace my car batteries and vehicle batteries at the 4 year mark even if they still work and the battery that still works I carry it with me in vehicle in case I or someone else needs the battery.