That allows for a more precise vertical aim on the ship. The lock mechanism simply ensures the aiming dispersion ellipsoid is fixed at the target's distance, instead of the distance of the point at the center of your screen.
SubOctavian mentioned it in old dispersion commentary.