Impulses often solve a real short-term problem.
Sending the message, spending, using a substance, leaving suddenly, self-harming, or acting on anger may be attempts to change an unbearable state. Naming the function makes it easier to find another route to the same need.