So the lawyer gets paid a lot less than the pilot.
Many people don't realise this but there is a huge surplus of law graduates. More people are doing law than can ever be usefully employed as lawyers, so the industry has the same oversupply problem as aviation does.
Recently someone sent me a thing called the Ideal Job Triangle. One corner was labelled Fun, one was labelled Well Paid and the remaining corner was labelled Legal. The caption was 'you can only choose two.'
Unfortunately it's often the case.