I think a lot of the more technical degrees teach *how* to do your future job, not necessarily the exact information you're going to need. Like lawyers, as mentioned - you get taught how to argue a case, how to research, how to find & cite precedents, etc. Similarly, computer programming - code structure, logical thinking, documentation, even if you never use the actual code (or even language) you used while getting your degree.
Same with the sciences - biology, chemistry, etc. Sure, there's basic underlying knowledge, but you're more learning how to do an experiment, how to conduct research.
The more esoteric the degree though, the less you are taught *how* to do your future job. Like, if you spend 4 years studying the cello, your classes are not likely to cover the best way of asking if someone wants fries with their order.