Why was the Typewriter Invented?

The typewriterw was inventd in the early 1870s. It is a machine that uses set of keys in order to press or imprint characters onto a piece of paper, or some other medium.