Doctors learn the prerequisites to the stuff they learn in Medical school: chemistry, biology, all that other science.
Lawyers learn the law in law school. We do not actually need to go to college for anything, since the law does not rely on any prerequisite knowledge, except maybe (American) political history and intro-level macroeconomics.