Remember that genetics (in the Mendelian sense) predates the understanding of what a genes was in a material sense (a segment of DNA) by 50 years.