The most accurate answer to why general stores declined after the U.S. Civil War is:
They lost business to overseas retailers.
After the Civil War, improvements in transportation and communication, such as railroads and telegraph systems, made it easier for consumers to access goods from larger retailers and overseas markets, leading to a decline in the business of local general stores.