You had an internal short/bad cell in the optima. Pretty common lately with them. If the new one acts the same though, then its probably something shorted/grounded out like the security system or a light not going off.
We’re the best Subaru Forester Owners Forum to talk about the best years of the Subaru Forester, modifications and reliability history of the Subaru Forester.