Loser does not always get completely destroyed, Victor is not always in position to write history, no one remains victor forever, there are neutral parties in the world. Can we really say that history is written by victors?
I believe "History is written by the victors" is an overused and not always accurate saying. I believe there are numerous examples where the "loser" of a particular conflict went on to survive and write the modern history.