You know that's one of the warning signs of a serial killer, right? Just saying.
And yes it most likely is a coping mechanism, you might not remember what it's from, you may have even been to young to remember where it was from, but that kind of behavior is a coping mechanism.