The soldiers planned to kill the prisoners to prevent any of them from swimming away and escaping.
But the centurion wanted to spare Paul’s life and kept them from carrying out their plan. He ordered those who could swim to jump overboard first and get to land.
The rest were to get there on planks or on other pieces of the ship. In this way everyone reached land safely.