To elaborate on that: They were the handle on the code lines, for anything.
You would often use the line number to either edit a given line number,
or to remove it.
'Clever' people would even do mis-guided arithmetic on them, e.g.
GOTO MenuChoiceNum\*100 + 1000
GOSUB MenuChoiceNum\*100 + 1000