My grandmother had that sort of interpersonal radar.
She could spot a bad apple in about five seconds.
One of my brothers seems to have inherited that.
Me, not so much.
It is an odd, visceral reaction to be sure. Not always right, but I do listen to it.