Traumatic events alter the DNA in such a way that after the trauma, it's passed down genetically in sperm and eggs. This is where innate inexplicable fears come from, like the infamous cat cucumber.
https://www.youtube.com/watch?v=_7vML9C3PZk