There's a name for this: Cargo Cult - copying behaviour without understanding why it exists in the first place. It's a part of human nature, even apes do it (they copy your very moves if they like you). Since we still do it, I suspect it has benefitted us during our previous evolution, and perhaps it still makes sense sometimes.