Translation:In comparison to that apple, this apple is more delicious.
Agreed. There is some arcane rule for when to use "with" or "to" with compare but most people don't know it or ignore it. I think "with" might actually be preferred here because apples are similar and literally comparable. In "Shall I compare thee to a summer's day?" the comparison is metaphorical.