Doesn't the US do the same with states instead of countries?
This has limitations and reduces how analogous it can be to the US' and its member states.
The major difference between states is tax rates. Labor, transacting, anything else economically is practically transparent and frictionless.
Also tax spending. For example there's no central EU funded military but each member budgets it differently, just like how there's no New York military and Pennsylvania military.