A ketch is a ship with two masts: the "main mast" towards the bow of the ship, and the smaller "mizzen mast" towards the bow.
The logic behind the ketch has to do with the separation of the wings to the sloop, giving it more flexibility.
That way, the boat has a better stability and receives a steady wind while sailing.