You seem to have answered your own question.
OCR Optical Character Recognition (software).
Instead of a scanner taking a 'picture' of something, the software can also 'recognise' the writing and create a text type file which can be edited.
If you wanted to edit a 'picture', it would have to be done in a paint shop type program.