Measuring the length of the eye, known as axial length, during an eye exam is important because it provides critical information about the overall health and refractive status of the eye.