For me, when enemy NPCs walk by a dead body they usually say something along the lines of, "I'm going to find out who did this!"
Same thing happens to me. I've even had NPCs start a search upon finding a dead body.
Here's what I think happens:
The script takes a moment to kick in.
Second, if NPCs have performed one search of the area on finding a dead body and find nothing, they won't do it again. Why bother? They would assume the assailant has left the area.
For bandits and the like I also assume they aren't all that torn up on losing one of the gang. That's just a bigger cut for them.
For gameplay reasons it would make being a stealth character a lot more frustrating if forts and towns stayed on constant alert and search after finding a body, even if that would be more realistic.