There are crew rest areas in the aircraft.
In the 777, they are in the overhead.
The off shift crews are a bit rebellious these last few years.
When you are resting and need to use the facilities,
It just is not proper to wander down past the security door into the passenger cabin looking like a passenger.
So, first you have to dress, (suit and tie) looking impeccable before you saunter down.
Ungrateful flight crews. They want their own facilities.