that’s something different. Every country asks where you will be staying on their immigration entry forms. This thread is about local police, no immigration and customs agencies.
In Germany, it is required that when you move to a new apartment you walk into the nearest police station or town hall within a few days and fill out a form telling them your new address, who you live with, what their religious affiliations are, etc. You will get in trouble with the police if you do not do this.
In China they take it even further, and even tourist have to do the same. If you stay in an Airbnb in China and do not register with the local police, it is possible you can get in real trouble. This is not “write your hotel’s address on the immigration form”, it is “tell the local cops where to find you.” There is a huge difference in my mind at least.