it's dumb luck, or you were born into money and have the social connections to get high end jobs.
being well-paid has nothing to do with intelligence. it's mostly a product of your social class and the privileges and connections it brings. when i was 22 my friends were being hired into 90-180K jobs w/ English degrees, because their parents got them jobs in tech companies. I got a 30K job after applying to 300+ places.
my second job i made 50K, meanwhile my friends had moved on to jobs in the 200-300K range, with minimal experience.
and today I make 150K, an they make like 500K and have now have millions in stock options and will inherent millions more. and they don't interact with me anymore because they think i'm a poor loser who failed at life, unlike them, who clearly worked way harder than me, hence all their 'success'. meanwhile i inherited 150K, which was basically chump change