Taking good care of a battery goes a long way!! Many years back I foubd out about battery " maintainers" a type of trickle charger that helps batteries last longer. These were recomended by the engineers at the battery plant. I started using them for my boat and my motorhome batteries especially during the off season. From that point my average battery life almost doubled !
Even some of my cheap batteries were lasting about 5 years where they were lasting only about three years. My better quality batteries were going 6-7 years, well worth the 30-40 dollar cost of the maintainers. The boat I bought over the summer has built in chargers with maintainers. The current batteries are 4 years old with no sign of loosing power. I have two group 31 deep cycle for the trolling motor, another group 31 as a house battery and a smaller group 24 starting battery. I need these to be taken care of as well as possible, it is gonna cost me a fortune to replace them !!!
"Taking good care" goes without saying. But I've always been leary of trickling.
Years ago I had one and that battery lost fluid over Winter and I found that battery to have a shorter life. I realize it may not have been a good charger, so maybe that had something to do with it. Regardless, with 3 boat batteries and 2 tractors, I'm not about to use 5 chargers.
My boats run maybe once a week. So, they are idle much of the time. Summer discharge is minimal. In Winter I charge the first day of the month, every month. I usually get about 8 years out of a "good" battery. I don't buy the stuiff at wallyworld.
Here's an interest story. I also have a classic car that gets driven very seldom. I don't remove the battery over Winter, nor do I bother charging it (it's parked spot is not convenient). I inspect it early Spring. It's usually low, but it always turns the engine over and a little driving and it's OK. A few years ago I got to thinking that the battery is probably old so maybe I should replace it as preventative maintenance. A check of my service log book showed that DieHard to be 26 years old. I replaced it anyway.