That comes with "Samskaras", the totality of learning - upbringing, education, family and social influences, etc.
Wikipedia defines it in this way:
"In Hindu Philosophy, samskaras are mental impressions, recollections, or psychological imprints that color one's thoughts and actions, and form the...