Libya and Egypt were and still are countries without true democracy, where all legitimate opposition was purged and crushed by the will of dictators. Of course ordinary people happily went against their dictators while being totally unaware that it would hurt country in a long term.
America on the other hand is a very stable political structure. During 20th century Russia went through 3 revolutions, 1 major civil war with millions of casualties, 2 world wars, and collapsed 2 times. Germany - again 2 world wars and also was split into two parts for half of a century. UK lost a good chunk of Ireland, the world wars bankrupted the economy so hard UK could no longer mantain their Empire, with consequences of losing all its colonies. France is a literally a meme on its own.
The geographical position and the political system makes USA incredibly stable. It can't be invaded militarily or economically (China tried that and got trade wars). It can't be destroyed from within as well because people still have too much to lose if they start some shit like a revolution, which is became possible with a economical dominance over the globe. Even if POTUS was killed, the Administration will just simply find another man to replace him and the country will continue to function as it did before. Which is simply impossible in third world middle east shitholes like Egypt.