Minecraft wiki entry for Development_versions, associated text: Item predicate in advancements now makes a distinction between actual enchantments and stored enchantments, like ones stored in enchanted books.
stored_enchantments is used to match stored enchantments.