Unlike the normal distribution in your link, earnings in the legal profession follow a bimodal distribution. The mean/median earnings of everyone from public defenders and law firm associates isn't typically representative of actual incomes.
No one “plans” on being average just like I’m sure a lot of software engineers “plan” on graduating from college working for BigTech and adjacent and making $160K+ straight out of college and not working for “Billy Bob’s Fish Tackle and Wordpress shop” making $50K.
https://money.usnews.com/careers/best-jobs/lawyer/salary