That is one example, yes. It seems to me that you did a google search for Affidavit, clicked the first link and hit CTRL + F to find something that mentions the affidavit without seeking out the potential that affidavit might mean many things.
Allow me.
"Court affidavits. Although a court trial usually involves witnesses appearing in court to give oral testimony, there may be situations in a legal proceeding where affidavits are used, such as in support of written motions or when a witness is not available to appear in court."
https://www.legalzoom.com/articles/what-is-an-affidavit-and-how-is-it-used
"The other type of evidence is testimonial evidence. Every case needs some form of testimonial evidence. This type of evidence is simply what someone tells a judge or jury while they are testifying. Sometimes this is eyewitness testimony, sometimes it statements that the defendant has made to the witness. Almost anything a witness has personal knowledge of and is relevant can be testified to. There are exceptions to what someone may be allowed to testify about. These exceptions are governed by the rules of evidence."
https://www.eskewlaw.com/law-library-evidence/
Let me repeat myself:
"Because the evidence in question was just testimony. Hearsay evidence." and add, "Much of the witness testimony was very weak. Just look at ballotcounterlunchgate.