The Ottoman Empire surrendered when World War I ended the following year, and, following a declaration by the League of Nations (the forerunner to the United Nations), Britain became rulers of Palestine by mandate.
If the Ottoman Empire never surrendered, Palestine wouldn't have been ruled by the British.