It uses the image of tar, a thick, sticky substance, to convey a sense of being overwhelmed and terrified. It suggests that fear has permeated you, just like tar might coat something.
Here's an example:
"That horror movie really scared the tar out of me! I couldn't sleep for days."
Essentially, it's an exaggerated way to express the intensity of fear, making it a more vivid and memorable phrase.