Minecraft wiki entry for Beginner%27s_guide, associated text: Smelting items in a furnace also produces experience, which is automatically awarded to the player upon removing any smelted item out of the furnace.