How would they be able to sail away without a ship? In the middle of the sea?
We don't even have confirmation they were on the ship when it exploded. But destroying a pirate crews' ship seems to be a symbolic destruction of the crew, as Teach stated. I don't think shanks was mercyful here. He rather checked how loyal his enemies minions are.