Immortal =/= Undead. Undead are (typically) immortal, but not all immortals are Undead.
Elves (proper Elves) are immortal, technically and they aren't Undead; nor are gods, typically; and a lot of high-tech or high-magic can make people functionally immortal without ever dying.