Yup. ENCHANTED creatures. Undead, especially incorporeal undead are certainly enchanted. Created by magic and all that. After all, Xorn aren't summoned either.
This is an interesting rules question.
From the 1e PH under protection form evil it says:
The protection encircles the recipient at a one foot
distance, thus preventing bodily contact by creatures of an enchanted or conjured
nature such as aerial servants, demons, devils, djinn, efreet, elementals, imps,
invisible stalkers, night hags, quasits, salamanders, water weirds, wind walkers,
and xorn. Summoned animals or monsters are similarly hedged from the
protected creature.
The listed creatures, including the xorn, are all extraplanar and normally enter the prime by being conjured. Some could enter on their own by a portal, but normally extraplanar stuff is on other planes.
The 1e DMG special hidden rules on spells does not clarify the enchanted creature definition.
The 1e MM has an interesting note in the ghouls section
"The magic circle of protection from evil actually keeps these monsters completely at bay."
Which indicates this is a change from what you would expect from the spell.
Then again in the ghast section it says:
"The circle of protection from evil does not keep them at bay unless it is used in conjunction with cold iron (such as a circle of powdered iron, an iron ring, etc.)."
Which seems to indicate that they are similar to ghouls but more powerful, so for the PFE exception to apply it needs a little extra oomph from cold iron.
Shadows are similarly called out as specifically blocked by PFE: "a protection from evil will keep them at a distance."
No other undead (groaning spirit, ghost, lich, mummy, skeleton, spectre, vampire, wight, wraith, zombie) mention protection from evil affecting them.
Enchanted creatures originally in the Basic line in Moldvay were defined as "The spell will also keep out hand-to-hand attacks from enchanted (summoned or created) monsters (such as living statues)," for me at the time I was running 1e I was very familiar with B/X Basic as well, this might have fed into my interpretation of it when I was Dming.
I interpreted enchanted as being something like a golem, homunculus, a skeleton, or a zombie, a magically created creature or something currently enchanted (such as the permanent duration animate dead). Undead also do not seem similar to the 1e listed extraplanar creatures. I did not think it worked against generally magical creatures like dragons or nymphs or pixies. So I never interpreted undead as enchanted creatures for protection from evil spells except for things like skeletons or zombies animated by an animate dead spell or as specifically called out in their individual MM entry.
AD&D 2e changed the wording of protection from evil to narrow what was covered.
"Third, the spell prevents bodily contact by creatures of an extraplanar or conjured nature (such as aerial servants, elementals, imps, invisible stalkers, salamanders, water weirds, xorn, and others)."
In 2e it is clear it does not prevent contact with magical creatures unless they are extraplanar or conjured or specifically called out as such in their monstrous compendium entries (ghoul and ghasts keep that call out in their MC1 entries, shadows lose that call out).
However in the BECMI Basic set the Basic rules definition of enchanted creatures in protection from evil changed to in many ways widen it:
"In addition, "enchanted" creatures cannot even touch the cleric! If a magic weapon is needed to hit a creature, that creature is called "enchanted." However, a creature that can be hit by a silver weapon — a lycanthrope (were-creature), for example — is not an "enchanted" creature. Any creature which is magically summoned or controlled (such as a Charmed character) is also considered to be an "enchanted" creature."
So all wraiths and higher undead will be blocked but not wights or ghouls, zombies or skeletons unless they are magically controlled such as the control an animate dead spell grants the caster over animated zombies and skeletons.
late in the B/X line you get the Rules Cyclopedia which lists in their monster entries whether a creature is enchanted or not and things like vampires and spectres are listed as enchanted creatures so subject to protection from evil. The protection from evil spell keeps the BECMI redefinition: "An enchanted creature is one that normal weapons will not affect, one which only magical weapons can hit. A creature that can only be hit by a silver weapon—a werewolf, for example—is not an enchanted creature. Any creature that is magically summoned or controlled, such as a charmed character, is also considered to be an enchanted creature." Interestingly wights which can be hit by silver weapons are listed as being enchanted. Ghouls are not listed as being enchanted creatures. Skeletons and zombies are. Shadows are enchanted creatures, but throughout the Basic line they are specifically not undead while in AD&D they are undead.