Exactly. Ive never understood how defense attorneys are regarded as bastions of freedom and rights. The vast majority of them are amoral, whores who slut themselves out-not to people who are innocent or wrongfully accused- to whoever can afford their services. They often know their client is guilty as sin and will defend them if there's a big paycheck or media notarity. In fact getting an obviously guilty client off garners them respect and even fame. (Think OJ's dream team, these people defended a man who brutally murdered 2 people and yet achieved a celebrity status)
Actually I do kind of get it.
The defense attorney's job is to make sure the prosecutors do Their job. In other words, make an ironclad, leakproof case that the accused is in fact guilty. Otherwise, if you have weak defense attorney, you could very well send an innocent person to jail or death. Think of it that way. On the other hand, If a jury finds someone who is obviously guilty, innocent, it's because the prosecutors did a piss poor job of presenting their case.