Fern Flowers are used in enchanting, to unlock a 5th enchantment slot. If you want to get an artifact enchanted with 5 different enchantment types, you need to have 10 Fern Flowers.
I've included a link to the Help article below, for more information.