It is because little kids and toddlers copy everything that they see other people do. If they see you doing something, then they think they are supposed to do it too, and they copy you. Also they are “like sponges”(that’s what my mom says) and “soak up(/remember) everything”.