So that if the AI gets stuck on the terrain for a while, it could detect it and pick a different target position away from the terrain to get free
I'm marking this as a bug as depending on the amount of terrain it can seriously harm how effectively the AI can do things