I've noticed that this happens when the enemy is transformed in some way. When turned into a pig and killed, the enemy turned back into a human and did their idle animation after death. Same for druids who have just transformed into their animal form