It's a strange day when I see a rayiner post I completely agree with, but... people just don't understand that not only is this how most lawyers view their role, but it is
absolutely critical that they do so in order for our society to function as designed. Even the relatively more activist lawyers I know would agree at least in principle to some version of the thought process articulated above. They have to!
In fact, attorneys typically hold themselves to extremely high standards of ethics - just not the ethics people think of. I'm sure they exist, but out of all the many lawyers I've met, I have never met one who did not take things like attorney-client privilege, being an officer of the court, or duties surrounding disclosure and discovery and conflicts of interest extremely seriously. It's very much a case of "orange and blue morality"[0]: It's not that the rules they follow aren't taken seriously, it's that those rules are not the rules most people imagine.
So, the idea that attorneys should abandon the principles of the system they've dedicated their life to because some layperson's sense of ethics demands it is foolish, in that even if it might produce a "better" result to your sensibilities or mine, it's simply not going to happen, not because attorneys are amoral, but precisely the opposite: Because they are moral according to the morality of their system.
Look: People don't like the justice system because it doesn't always produce results that they agree with. They don't like or understand its convoluted, highly layered, self-referential sets of ever-shifting, multi-faceted rules and tests and interpretations and arguments about the technicalities of meanings of words. And that's fine. But a system of justice based on even the most altruistic "X seems right to me" is going to be an order of magnitude worse for at least some people, and I have yet to hear an idea for replacing our current system that doesn't boil down to either that or our current system, but it somehow magically always makes the decisions people personally want.
[0] https://tvtropes.org/pmwiki/pmwiki.php/Main/BlueAndOrangeMor...