He certainly didn't do that in my playthrough, though I have noticed some other NPC combat AI oddities.
It might be worth reporting to Larian as a bug (there's a link on the launcher), though possibly you just somehow got an unusual configuration of characters and AI choices that led to this problem.