We started out as a collection of states that wanted to present a united front, and smaller states didn't want to have no say (so we get the senate and electoral college) while larger states didn't want their individual voters to have no say (so we get the house of representatives). I'd compare the early structure to the EU, but I haven't looked much at history since highschool.
Despite the overreach of the Federal Government of the last few decades, some say since the Civil War, we are still a collection of states to attempt to present a united front. But the apparent lack of that united front is bigger than just discussing the pros and cons of the Electoral College.
The EU structure from what I know is a similar idea, but I'm not familiar enough with the details on the EU to comment much more than that.