You never know when you might need to say “Help, I’m dying” in a foreign country, and the sooner you learn how to say it in the local language, the better your chances of survival are.
However, your chances of survival don’t depend on whether you know the local greeting or not, since it’s mostly used in a casual conversation, not a life-threatening situation. Therefore, one should 1st learn how to say the phrase “Help, I’m dying”, and then learn the greeting.
I have never learned languages to go to a foreign country. I always did this to watch movies or read books.
Also in that context that might be a helpful phrase.