Not necessarily "no tax to pay", just not being tax resident. There are taxes that apply to non tax residents due to work, economic activity, property, etc.
It can be particularly useful not to be tax resident in a country with worldwide taxation if you have passive income from elsewhere, as this can mean "no tax to pay".