It follows D&D logic as resting in the tower you might get ambushed and able to take limited amount of rest.
Also Ravenna warns you about it:
At the conclusion of third floor, thou art granted respite for a lengthy rest, yet exercise caution, for the tower's inhabitants may take offense if any intruder slumbers within their dominion.
Sorry if the you feel you got cheated, the demon girls are mean.