This is a case of Observational Learning. This type of social learning occurs when we observe and imitate the behavior of others. It is one of the most common forms of learning and is used by primates and humans, it is a type of instinctive learning.