Essentially I joined a big battle between two empires one of which I am at war with. Afterwards I was attacked by the remnants of the losing sides army which still outnumbered my own troops, while the allied side moved away.
I took the option to pay them off to not get attacked. Apparently this...