There is nothing magic about two parties, in fact there are plenty of other parties even in the US. However due to game theoretic mechanisms [1] in the winner-takes-all system we tend to get two dominant parties.
I'm not sure how this could be avoided in the US system of 2 senators per state. You can't exactly send 2/3ds of a senator to Washington if you had a proportional system.