Except for RuneScape, Elder Scrolls, MAID, RAW DnD (multiple editions), Vampire the Masquerade, GURPS, and many more. Its a trope that I think originated from Warcraft (really unsure about that answer). But not really many RPGs do that according to their rules explicitly.
It started in D&D 2.0 for certain, might have been in 1.0 but I don't remember. That predates Warcraft by a few months....
Also that's the way it worked in 3.0 D&D. You had to cast "Cause [Intensity level] Wounds" to heal Undead. I dunno about 4th, but my friends that play 5th run it that way.
I recently started focusing a bit more on CRPG games, so this stuff is fairly new to me.
I can't remember how often I tried to walk somewhere with my character mid-fight, only to be beaten to a pulp, because I forgot attacks of opportunity.
It more than once made me laugh at my stupidity, I absolutely love it