I did not know this bit of internet lore. I'm assuming the Ghost of Tsushima developers did, because those foxes explicitly lead you to treasure.
> Legends tell of such celestial foxes providing wisdom or service to good and pious humans as they act as mediums between the celestial and human worlds.