In a raid when the defense is all dead, and my last hero dies from counterattack damage from Riposte, why is that a loss for me?

I agree with Ace1, I think there should be a “draw” option, when all 10 heroes go down, where nobody gets any points and you can retry or not…