This seems to happen at random. I have encountered this in the town of Mulbrydale, the house next to the forge where you can enter a very small cellar with several chests. However after exiting and starting the game I was able to climb out of the cellar, whereas at first he just kicked off the edge