Overly simplistic illustration.
In a communist country, if you discover gold in your backyard, the government will compel you to dig it up and give it to the government.
In a socialist country, if you discover gold in your backyard, the government will pay you to dig it up and give it to the government.
In a capitalist society, if you discover gold in your backyard, you dig it up and sell it, and the government taxes your profit.
In American society, if you discover gold in your backyard, the government either sells the mineral rights to someone already richer than you, or declares it a National Treasure and no longer allows you to access your back yard.