The prism in a tonometer helps to accurately align and focus the measurement on the corneal surface. It ensures that the pressure reading is precise by providing a clear view of the corneal deformation during the test.