This is not a bug, it is that you found a zombie village.
Yep, wandering traders should drink potions only when there are monsters around, and no monsters spawn when difficulty is set to peaceful.
This is not a bug, it is that you found a zombie village.