They are advocating/representing, not testifying. A defense attorney does not make statements of fact, they call witnesses and experts for that. They introduce reasonable doubt.
They call witnesses and experts to present facts and other testomony which is why they are under oath.