The hole in your argument is that it's much easier to keep finding employment as a lawyer because law as a skill doesn't change dramatically and the more senior you get, the better. Developers skills diminish over time e.g. you're a .net programmer and now you have to learn Python to get a job.