Complex sentence: Musicians study music theory in order to be able to understand the structural relationships in the (nearly always notated) music, and composers study music theory in order to be able to understand how to produce effects and to structure their own works.
Split into simpler sentences: Musicians study music theory to understand the structural relationships in the (nearly always notated) music. Composers study music theory to understand how to produce effects and structure their own works.