The AI doesn’t know that the character can climb the wall. Or if it does, it looks like the slower way to the AI.
So it picks the stairs instead.
Therr are ways to indicate where the character can perform an action to get to a normallu inaccessible place, such as by jumping off a wall for example.
I think they show how to do this in one of the Making Game Ready AI live training videos.