Human cognitive abilities ranging from basic perceptions to complex social behaviors exhibit substantial variation in individual differences. These cognitive functions can be categorized into a two-order hierarchy based on the levels of cognitive processes. Second-order cognition including metacognition and mentalizing monitors and regulates first-order cognitive processes. These two-order hierarchical cognitive functions exhibit distinct abilities. However, it remains unclear whether individual differences in these cognitive abilities have distinct origins. We employ the classical twin paradigm to compare the genetic and environmental contributions to the two-order cognitive abilities in the same tasks from the same population. The results reveal that individual differences in first-order cognitive abilities were primarily influenced by genetic factors. Conversely, the second-order cognitive abilities have a stronger influence from shared environmental factors. These findings suggest that the abilities of metacognition and mentalizing in adults are profoundly shaped by their environmental experiences and less determined by their biological nature.