the federal government didn't exist at one point in time. individual states acted as independent countries with their own armies and post offices, etc. as sovereign countries, the agreement to join the federal government included the electoral college so that big states wouldn't dominate the small ones completely, and there was an incentive for small states to join.
United States