It's the same reason that adversarial systems law, economics, international relations, etc. tend to work. People have more information about their own desires than that of others, so if you task each person with looking out for his own interests but ensure that they also respect the clearly-expressed interests of others, you end up bringing as much information to bear as you can.
Take pork barrelling (edit - I used a different example, but it would derail the thread). Nobody (at least, nobody who's notable for anything except being anti-pork) fights to limit it, because no-one loses a huge amount. But a small minority of wealthy vested interests do stand to gain a lot.
But your point is basically correct - the systems mostly work, because people's big issues get dealt with.
>a way of arriving at a globally optimal solution //
has very little direct relationship with this:
>the flexibility to make sure you win on the issues you care about and lose on the ones you don't //
This is the statesmanly way to do things. But generally speaking what one cares about and what is "globally optimal", lets say most beneficial for both parties, is seldom coterminous.