The same applies to programming.
I'd say there are tons of hidden dependencies you have to learn in writing programs. Stuff that the tutorials and books often leave out. And that most developers take a few years to learn these dependencies, because there currently is no widely-known easy way to learn all this "tribal knowledge".
And when universities try to systematize ways to learn this tribal knowledge, they come up with a curriculum that takes most people 4 years to get through. (Yes there are many smart developers who could learn the curriculum faster.)
In what programming job?! Junior frontend dev churning out React components? Even there you're dealing with a dizzying array of HTML, CSS, and ever-changing JavaScript/Babel/Webpack/etc. insanity. In a few months you can barely produce some simple, low-quality code. It takes a lot longer for the concepts of good quality code to sink in.
it's always very costly, because it requires a very involved supervisor.
Learning large volumes of case law is analogous to learning the details of low level programming; both fields require years to master. But those details are not required for a lot of work in either field.
Meanwhile the hard stuff is out there, but increasingly being done by a few companies that sell it to the rest of the world.
So programming is becoming more bimodal and if you’re not on the hard curve it is going to become a lot less lucrative and a lot more competitive.