Collecting a detailed medical history is crucial in pediatric assessments as it offers insights into the child's past and present health conditions. This history includes information about prenatal and birth history, past illnesses, surgeries, hospitalizations, allergies, medications, and family medical history. Understanding these factors helps in identifying genetic predispositions and potential health risks, which can guide further investigations and treatment plans.