And I think your point suggests that lawyers will continue to be valuable for many years to come, as well. There are so many rules that can be applied in a given case - including seemingly contradictory ones - that there is room for reasonable disagreement about which rule should be applied. A skillful lawyer can make a compelling (but not obvious) argument that rule A should be applied and not rule B.
There are two kinds of clients in the legal field: rich ones and poor ones. Rich clients don't seek the cheapest legal services in the way they don't look for the cheapest office space or the cheapest office furniture. No board member wants some guy in India poring through his e-mails to do an investigation or diligence for a transaction. For rich clients, saving money and hiring "pretty good" isn't such a great thing if their opposing party spends more money and hires "pretty great."
Poor clients are different. Poor clients do want the lowest possible price for the given result. But poor clients tend to have problems that are hard to outsource. How is an attorney sitting in India supposed to represent you in your divorce, or help you get out of a traffic ticket?