That is current averages ie. historical data.
What it says is that somebody who got a medical/law degree 20-30 years ago, did very well over the last 20-30 years.
It says nothing about whether somebody leaving school today will do better in 20-30 years having spent 10x as much as their parents generation on college - rather than becoming a plumber or electrician or founding a startup