Most clearly results from genetic predispositions. Temperament is a set of peculiarities and forms of expressing emotions that a person possesses. It is related to the character of a person and defines the personality. It has been proven that the temperament has genetic origins, that is why emotional traits such as shyness have genetic origins.
I hope my answer can help you.