The typewriter or QWERTY keyboard layout is arranged the way it is to prevent mechanical jams in early typewriters. Frequently used letters were placed apart to reduce the likelihood of adjacent keys jamming when pressed quickly in succession, improving typing efficiency and reducing the need for repairs.