I believe the answer is: Observational learning
Observational learning refers to a type of learning that being done by paying attention to the action of other people. When this happen for a long period of time,we would start to instinctively mimic other people's action and start implementing it in our life. Which is why there is a saying which conveys that you are the reflection of the 5 people that are the closest to you.