Hawthorne effect
Behaviour changes because people know they are being observed or studied, and not because of the intervention being tested.
Example: An office gets new chairs. Staff then work faster because they know their output is being counted, not because of the chairs.
Caution: Whether and how strongly the effect existed in the famous original study is disputed. It remains useful as a warning about the effects of being observed.