What was the purpose of autocorrect originally?

What was the purpose of autocorrect originally?

آٹو کریکٹ کا مقصد کیا تھا؟
Explanation

Autocorrect is a word-processing feature that identifies misspelled words.

It uses algorithms to identify the words most likely to have been intended,

and edits the text accordingly.