History of the internet: it was invented as a US department of defense research project, and grew into the beast it is today. You could buy a .com address years before the internet existed outside the US. Note that .uk exists for the same reason -- it should be .gb, which is the country code, but the UK had already been naming everything with "uk" internally.
So the .edu, .mil, .gov, and .uk got grandfathered in. Others disappeared: ARPA, NATO, Czechoslovakia. People can still register .su domains, if they like -- that's the country code for the Soviet Union.
Once a TLD sees enough use, there's no real way to get rid of it.