There are data protection laws in lots of countries. It's written into law.
Politicians looking to score will often introduce new laws that explicitly make certain practices illegal instead of waiting for jurisprudence.
In this particular case: if you were to register people's visits to a wide range of locations IRL and sell that information, that would be a clear violation of privacy in many countries. It doesn't take a brilliant lawyer to argue that principle also applies online.