Here's why:
* "Jugo" is a masculine noun.
* "De manzanas" is a prepositional phrase modifying "jugo", and the gender of the phrase is determined by the noun "manzanas", which is feminine. However, the gender of the noun being modified (in this case, "jugo") takes precedence.
Therefore, the entire phrase "jugo de manzanas" is considered masculine.