As a baby, Karna was found floating in the river by Adiratha, a low caste charioteer. He grew up as Adhiratha‘s son.
Thus nobody knew to which caste did Karna originally belong to. For all practical purposes he was the charioteer’s son.