The story
From tri- + -alogue, formed on the analogy of dialogue, where the first syllable is interpreted as di-. Compare Medieval Latin trialogus. Note that official documents of the European Union use the spelling trilogue (perhaps influenced by the French spelling).
Etymology from Wiktionary, CC BY-SA 4.0.