This occurs when the pathing does not see its obstacle and is very specific to individual cases. I believe we got all ledge situations but if you found a new one please send a screenshot.
There is a known issue where neutral creatures that wander randomly like the woodlice will do this. Anytime you see this happening with an object also we could use a screenshot!