It reminds me one of my daughter's science shows. In an experiment, they hire an actor to repeat a nonsensical ritual in a waiting room. When new people come in, without being asked, they copy the ritual. The ritual continues indefinitely well after the actor leaves the room.
In another experiment (I think referenced by Sapolsky), an animal (primate) watches a human perform a ritual that produces a reward (treat). When the animal is given the same challenge, they dispose of all of the ritualistic steps and only do the relevant steps. But, when a young Human watches, they will repeat the entire ritual.