Enemy Villager doesn't get hit by arrows

Any idea about what’s going on when enemy is walking through your town center, even under it, they don’t get damaged by some arrows?

Not sure if this is an in game bug or what. Eventually the vill dies but after it has left the town center a couple tiles away.