I'm totally new to car mechanics. The other day the battery died on my 2006 Toyota Camry. I jumped it but it would not hold a charge so I brought the battery into a mechanic to have it tested and they said that there was nothing wrong with the battery itself. I then had my alternator tested which showed that that was dead. I replaced the alternator and the car runs but I don't feel certain that I have solved the actual issue, i.e., why the alternator burned out in the first place.
It's my understanding that driving on a bad battery is what causes the alternator to burn out. So, if not the battery itself than what other reasons could have caused the battery drain in the first place? The only thing that comes to my mind is a bad connection to the battery itself but I don't know what good connection looks like to compare to what the wires in my car look like. I'm attaching a picture so see if this looks bad to a person whose seen under the hood of more cars than I have. The connection to the positive end of the battery looks pretty frayed to me, but enough to cause these issues?
And then I also just wanted to check if there are any other possibilities I should be following up on.