I have tried to walk away. Maybe because it is a zombie villager? It's normal difficulty

BEDROCK EDITION BTW
Why is the villager not getting killed?