It's not necessarily about being better. Sometimes a competitor can beat you just by being cheaper, or by being better connected.
One example is that the Matrix project recently took a budget hit when the core team apparently lost a big bid to a "large system integrator" who seems to have used their own open source code to bid against them.