How do maggots get into apples?

Apple maggots overwinter as pupae in the soil. Adult flies emerge in late spring and begin to lay eggs just under the apple skin. The eggs hatch, and the...