That’s not entirely true.
They do have an AI actually, it’s just set up to do that on most enemies, but it can do other stuff too as you’ve seen in the Kurak dungeon for example where enemies turn invisible and jump in and out of combat etc.