Sugar is hydrophilic, meaning it's attracted to water. Your water soaked/softened apples likely had a higher moisture content compared to your syrup. The water migrated out of the apples and equalized the sugar concentration. This process is referred to as osmosis.
Next time, try boiling the apples in that sugar syrup instead of just water.