From what I gather, you need to be blessed with world-class driving potential and wealthy parents who put you in your first kart at the age of 4 and pay your way through the ranks of racing from there until you reach the top 2-3 tiers of each type of racing (stock car, sports car, endurance, open wheel, etc) that actually pay you something. It also helps if your rich parents were famous racing drivers themselves.