You would use this to tell people that you are about to go somewhere. "Here" and "there" are here not to be necessarily taken to mean physical place. You could even mutter to yourself "here we go again" when your wife starts a row. It then has the extended sense of "look, inner person, here we go again, you and I (or my wife and I), into the sequence of this row".