It belongs to genetic inheritance, that is to say, it is possible to inherit only if both parents carry the same gene, which is about 50%.
Except, of course, gene mutation.