This is critical to understand. In the academic literature, this is called "surrogation" where a metric becomes a surrogate for the thing itself.
@sethgodin.bsky.social calls these "false proxies" which are far more dangerous even than vanity metrics.