Many people who behave in a toxic manner have been through trauma themselves, and instead of dealing with that trauma, these people start exhibiting toxic traits. These people usually don't know how to process trauma and stress in a healthy manner, so they end up being unpleasant around people.