The answer is "observational learning".
As clear from the term itself Observational learning refers to the process where an individual learns something by observing the routine or habits of other people. This is known as a type of social learning which may take different shapes.