Smithing table recipes are not unlocked when used. This is inconsistent with other recipe types.
To reproduce
Acquire netherite ingot and diamond sword
/recipe take @s minecraft:netherite_sword_smithing
Use the items in a smithing table to get a netherite sword
/recipe take @s minecraft:netherite_sword_smithing
→ ❌ The last command will fail because the player does not have the recipe.
Stonecutters share this property; reproduce through similar process. Note that for stonecutters, having the result item in your inventory will trigger the recipe unlock, giving the illusion of it unlocking via crafting.
Note that this makes the current simplest workaround for NBT output in crafting completely incompatible with smithing and stonecutter recipes.