I've recently become unreasonably annoyed by sleep effects and how the game seems to handle them. There is a story tied to this:
I play a level 11 bard in our bi-weekly 5e game. Our party was recently confronted by one of our reoccurring villains, an unfriendly lich. After an epic battle both the party and the lich were on the brink, with our resources depleted, our wizard possibly dead and the our fighters on the death's door. Luckily our sorcerer was able to rid the monstrous enemy of all his legendary resistances. My bard looks around the corner of the door to see the undead figure, squints the inky voids that he has for eyes thanks to the eyebite spell, and the lich... falls asleep snoring?
Asleep. The target falls unconscious. It wakes up if it takes any damage or if another creature uses its action to shake the sleeper awake.
It feels like there are creatures and/or creature types in D&D 5e that are designed so that they are immune to sleep. However, the rules don't reflect this as far as I know.
Shadar-Kai monster stat blocks, as well as any PC that plays an elf (including eladrin) have the following feature:
Fey Ancestry. The [XYZ] has advantage on saving throws against being charmed, and magic can't put it to sleep.
yet the actual Eladrin stat blocks, or most fey, don't get this benefit.
Similar examples can be shown for the Warforged race vs. warforged creatures like the Warforged Colossus, or the Reborn lineage vs. our unfriendly Lich.
Are the rules just inconsistent? Is this an oversight? Are there some other guidelines (for example, in the lore of these creatures) that are more consistent in how to approach this?
I'd prefer an answer that uses official D&D 5e materials since that is the version I care about, but if the best answer requires further context of Dungeons and Dragons lore or other editions, I'd be happy with it as well.