Some experience points do not go towards Mending repair, even if the Mending gear is not fully repaired
From my experience, if the furnace smelted many items and accumulated lot of experiences, sometimes the exp leaked to the player when collected even if the player wielded/equipped mending-enchanted tools/armors. I suspect the exp gathering animation/calculation was too fast so it didn't distribute the exp properly and caused slight leak.