Why do brains shit talk?

I’m curious–what is the biological reason that our brains beat up on us? Evolutionarily, did it benefit us somehow to berate/judge/bash ourselves and others? Like it makes sense that brains go “ooh eat more of that” because of the dopamine hit. What could be the reason all of our brains are trash-talking their keepers!?? Has anyone ever tried to explain this?