You can thank the Cold War for the Internet. It was conceived by the Advanced Research Projects Agency (ARPA) team at the Massachusetts Institute of Technology (MIT) in the late 1960s for the United States military to maintain tactical communications between military sites in the event of an atomic attack.
It was called the Advanced Research Projects Agency Network or ARPANET for short. Once the domain of only the military and universities, it eventually became public and became the Internet.