It may be something that she has seen on TV, or one of her friends may have done this to her. With my son, a conversation about the reasons why we do what we do, and why we shouldn't do some things, was enough to point him away from such unsocial behavior so hopefully, that will work for you too.