They didn't. They won at Gallipoli forcing an evacuation of the commonwealth forces, defeated a British expeditionary force at Kut in 1915-16, defeated the initial Russian advance into the Caucuses in 1914, held the line at Gaza for six months in 1916-17 winning the first two battles of Gaza.
It wasn't until 1917 that the Ottoman fronts in Mesopotamia and in Southern Palestine collapsed leading to massive British advances into Ottoman territory.
They lost quite a lot of battles, some disastrously, but I don't think you can by any means characterize it as "almost all".