Enemies respawning when you die is an intended game mechanic
Its partly to prevent cheese, but the real reason is to punish the player for dying in the first place