Question: why do villagers need emeralds?
Answer: Emeralds are primarily used as currency for trading with villagers and wandering traders. Trading is typically a faster way to obtain emeralds than by mining, as emerald ore is very rare.