Very simply explained. You have a set number of rounds in which to defeat the boss, if I remember rightly about 30. If you don't manage to beat it, then it's marked up as a loss, even if you have a full team.