The thing about lawyers is that they're often able to create work for themselves. They can lobby for laws that create opportunity if automation affects them too much. They can create class actions out of nothing and recruit their clients. They're also the ones that write the laws, and you can always expect that the rules of the "game" will always favor those with the most input into those rules.