Why was the Internet Invented?

The internet was originally developed by the United States military as a system to connect their numerous computers around the world during the Cold War. The system was meant to serve as a way to preserve all data in the event of a nuclear attack in any one area by making it available to all their computers at once, so if one was affected by an attack, the others could still retrieve the data.