An item can be fed into a furnace from a hopper. There is no real way for it to determine which items can be used as fuel or for smelting, so it simply places every item it gets into its inventory into a furnace's top slot. Afterward, your furnaces will need to be refueled.