Because the candy apples have a stick inserted in them, giving them oxygen access. As a result, the apples are exposed to oxygen, oxidizing, and will become brown on the inside.