When a pillager is trapped in a boat and you stand behind it, it can shoot you while their bow is on their other side. They don't rotate but can still shoot the player which seems weird to me, because this means the arrow fires backwards, through their body.
Hey there!
This appears to be a duplicate of MC-137793. Just to inform you, this basically means that the issue has already been reported and is being tracked elsewhere.