The PCs can all get killed in a combat encounter (Total Party Kill, TPK).
This can be due to bad choices, unlucky dices or too strong opponents.
It's hard to make up excuses for the opponents to simply let them
walk away, so I assume the opponents capture them alive.