The concept of thinking traps comes from cognitive psychology and cognitive-behavioral therapy (CBT), which explore how distorted or automatic negative thoughts influence emotions and behaviors.