This phenomenon has a famous name, the clever Hans effect.