The logic is that crowd sentiment often overshoots in both directions — a hated stock may be unfairly punished, and a hyped stock may be dangerously overpriced. Contrarians try to profit from these excesses, though genuinely distinguishing 'unfairly hated' from 'correctly hated' requires real research.