GiD reference manual : Point in line

Mouse menu: Contextual->Point in line
With this option selected, when creating a new point or line, etc., you can only select points that lie on existing lines.

To switch it off, simply select 'No Point in line'.