War is a political act where organized violence is used to obtain some political objective. The loosing side could very well have a stronger military then the victor when a peace treaty is signed, which actually happened a few times in Europe over the centuries.