What is the meaning of [while two dogs are fighting for a bone,a third runs away with it]

When two parties are engaged in a dispute, their attention is distracted from what is going on around them, and both may end up as losers.