I guess the game lookes at the kill ratios and then factors in the army size. My guess is that if the Hungarians were not on your side you would not have got the vice. Bit unfair but at least you got the province! would have been hard to swallow if you had got the Weak attacker AND had the smaller force!!