Oh, so you want to switch "gtg" into htg?
Have to go!
Have to go to what? The bathroom?
If you read further in the thread, you would've saw that got means to have an obligation to something.
"Got to go" = "I am obligated to go"
It's a correct statement.