My dude, a lawyer's job isn't to "win" in court. The job is to represent the client and make sure that their rights are fulfilled. For a prisoner on death's row, it might mean he gets to write a will and have a last meal or whatever, and that the method of execution will not be cruel and so on.
Company legal firms are responsible to guide the company into those bullshit loopholes so that the company can be societally garbage but not be punished by law, and those work mostly by avoiding court cases or forcing lawsuits in unloseable cases (such as copyrights).