Basically, both her usual robes and the sexy underwear go into "armor" slot. And there is no separate "underwear" slot, so they have to include underwear (unless they are underwear).
Some games allow one to remove armor entirely, and that causes underwear to appear, but any armor overrides underwear.
Yes, I have played a lot of RPGs, including modded Skyrim.