The reason for the to-and-fro was that the British government mounted an expedition against Manila in 1797-8.
The captains of all the vessels sued the EIC for reimbursement for expenses consequent on the delay to their homeward bound journeys, and for the eight regular ships, the additional risks involved in the detours to Penang.