Not necessarily patent law, but litigation in general. It would be a completely different matter when there's a legal dispute on in tech, say on a project where a deliverable is a software product, if the lawyer had a programming background.
The conversation would be so different, whether interacting with both parties, the potential experts, the judge. It would be just an incredibly valuable asset.
Not just in litigation, but drafting contracts having a programming background and knowing how projects go, how estimates work, and the common problems would also be helped if the lawyer drafting them has a programming background.