When the field of cognitive psychology first emerged, it was a departure from behaviorism, which focused on observable behaviors and not mental processes. Cognitive psychology emphasized the study of mental processes such as thinking, memory, and problem-solving, marking a shift towards understanding internal cognitive processes.