It's a bug that existed in old versions and has been deliberately maintained. If I remember correctly, there was an old quest that was actually unbeatable in 2.50 RCs 2-4 because Wizzrobes needed to appear in walls to hit a switch.