In real world, ad hominem arguments make more sense that they are sometimes given credit.
Of course, in an ideal world, we should be able to just judge someone's argument based on its own merit; however, in practice, an 99% arguments (pretty much everything that is not a mathematical proof?) will cite external facts and references. This creates an ample opportunity for manipulation for someone dishonest and hence credibility is important.