The end goal of a crew rest compartment's design is, ultimately, discretion. It's meant to blend in and not attract too much attention from passengers so that the crew can rest privately.
On slightly older aircraft, such as the Airbus A330, the crew rest compartment can also be in the cargo hold, so a staircase would lead down instead. But on even older planes such as the Boeing ...