Like humans, cats have a vagus nerve from their brain stem. Pooping can stimulate the nerve, leading to feelings of euphoria. So, cats may be running to burn off the extra energy from stimulating the vagus nerve.