Inherited from Early Medieval Latin biscoctus. Synchronicallty bis- (“twice”) + cotto (“baked, cooked”). Doublet of biscuit.
Practice speaking and memorizing "biscotto" and many other words and sentences in Italian.