Why were Austria-Hungary Ottoman Empire and Bulgaria allies in World War 1?

Austria-Hungary, the Ottoman Empire, and Bulgaria were not allies in World War I. Instead, they were on opposing sides. Austria-Hungary and the Ottoman Empire were part of the Central Powers, while Bulgaria was part of the Allied Powers.
Copyright Wanderlust World © https://www.ynyoo.com