Batteries are all over the place really. There are so many factors. Temp is a big one. Use, Care, etc all are big factors too. Quality does matter too, but sometimes some just dont last for whatever reason, from error in construction or whatever.
That being said, I have had batteries last only a short time, 1 year +/-, to a Decade +/-, in my regular used vehicles, even of the exact same brand/model.
Also keep in mind there is really no such thing as a "premium Walmart" anything. Buy a Milwaukee drill from walmart, then buy the same thing from an actual tool dealer. The Walmart will always have an added letter or something added to the model number, same model but just an added letter or something to designate it as a Walmart model. Companies cheap out on manufacturing anything for Walmart, to meet their price demand.
I talked to a hardware store at one time about a "lifetime" warranty on a tool, needing repair. He said most companies wont fix or replace tools from places like Walmart, and you can only take them to walmart to hopefully be replaced/honored, with mixed results.
The reason for this is Walmart goes to places like Milwaukee and tells them they want "X" amount of drills for some discounted price, they refuse to pay any more, so they can sell them "cheaper" than their competition. So the first thing the company does is to replace many parts with cheaper components, ie. plastic gears instead of metal, brushed motor instead of brushlest, less features, etc. So trying to take those in for repair or warranty the manufacturer refuses any warranty that walmart offers.
This is similar to buying a John Deere lawn mower from some place like Home Depot. Those are not real JD equipment, they are built by MTD for JD to sell cheap at Box stores. They have much lower quality and features than anything you get directly from a John Deere dealer.