This is a recommendation. I think that resting in camp should be unaccesible when you are underground in a cript or dungeon quest.
It is a bit strange and it brokes the narrative.
The party should do a long rest into the dungeon or cript. One thing I appreciated of first Baldurs was when you tried to rest in a dungeon and some enemies could broke this action.
In any case, this kind of rest right now seems weird stuf.
I'm enjoying a lot the game.
It adds a strategic element to know that you can’t get a full rest inside of a dungeon, plus like you said it doesn’t make much sense that we aren’t attacked while we rest especially in dungeons.