This article presents a novel theoretical perspective on the role of cognitive biases within the autism and schizophrenia spectrum by integrating the evolutionary and computational approaches. Against the background of neurodiversity, cognitive biases are presented as primary adaptive strategies, while the compensation of their shortcomings is a potential cognitive advantage. The article delineates how certain subtypes of autism represent a unique cognitive strategy to manage cognitive biases at the expense of rapid and frugal heuristics. In contrast, certain subtypes of schizophrenia emerge as distinctive cognitive strategies devised to navigate social interactions, albeit with a propensity for overdetecting intentional behaviors. In conclusion, the paper emphasizes that while extreme manifestations might appear non-functional, they are merely endpoints of a broader, primarily functional spectrum of cognitive strategies. The central argument hinges on the premise that cognitive biases in both autism and schizophrenia spectrums serve as compensatory mechanisms tailored for specific ecological niches.