I've had batteries go like that. Once I got in my 1991 Ford F-150 with it's 5.0 V-8, and it spun like a top and fired right up. I then drove to the grocery store about 2 miles away. When I came out 5 minutes later nothing. The dome light wouldn't even go on. I thought someone stole the battery. It was dead as a doornail.
I walked home and got my other car, drove back and jumped it. It barely started. I got it home, pulled the battery and got a new one. They tested it and it was DEAD. No warning what so ever. I've had several do that over the years. Fortunately all except that one died in the garage.
The desert heat out here is brutal on batteries. If you get 2 Summers, you're on borrowed time after that. The battery in my Jeep Grand Cherokee is under the seat, so it's not exposed to all the heat under the hood. So far so good. It's a 2015.