100 years ago this was unknown.
Genetics until 50 years was not understood how it works but just that there was things like inheritance.
1850-1950 was dominated by the discoveries of a monk named Gregor Mendel and the research of his into peas.
He called genes factors and knew there was something that caused inheritance.