It doesn't make sense. If a monster doesn't know you're there (or hell, even if they're across the dungeon) and they hit a trap, they automatically become hostile to you. Why? How do they know you set the trap? They can't even see you. Even if they could, why would them stepping on a trap suddenly make you unable to hide?