I may be dumb but it seems my bowman just can't attack.
Either I move out of foe melee range, or my foe is next to me.
In both cases, my bowman can't shoot.
I noticed that enemy bowmen can shoot after moving, from greater distances as well as when next to my swordman.