It does.
There's an important concept in soundproofing called flanking noise. There are various sources, but the most common is having sound transmitted through some kind of solid structure (walls, roof struts, door and window frames, etc.) into the soundproofed area. This is a major problem for soundproofing, and it's one of the hardest problems to solve because it's hard to completely isolate a room from its surroundings.
It also leads to interesting problems in multiple-occupancy buildings. A friend of mine used to live in a row of new-build terraced houses which had been constructed with continuous supporting girders running between houses (instead of having solid "bulkhead" walls between them, as usual for older terraced houses). The result was that a noisy neighbour at the opposite end of the row could still be heard clearly in my friend's house. Many flats have similar problems, with sound transmitted through the concrete structure. Any dense, rigid material transmits sound reasonably effectively.
Although these dense, rigid materials are good at transmitting sound along themselves from one end to the other, they're not so good at broadcasting the sound in air. For us to hear it, either we have to be close to or touching the structure itself, or the structure has to cause the air to vibrate. A flat brick wall isn't very good at vibrating, although of course it will do to some extent However, attach plasterboard (rockwall) to that wall and your plasterboard becomes a "sounding board" in the same way as the top of a guitar. Your bed frame can do the same, which is why you can hear building-transmitted sounds more clearly when lying in bed.
If you want to stop this happening, it's fairly achievable. The flat brick wall isn't great at putting energy into the air. If your plasterboard wall is not physically connected to the brick wall it's in front of, the sound has to be transmitted into the air in the gap between, into the plasterboard, and back into the air on the other side. Each step is inefficient, so you end up with a quieter room.
Don't forget the flanking noise though. Whilst you've stopped sound coming through the wall, sound also goes up the wall to the ceiling and down the wall to the floor - and your plasterboard wall inside has to be fixed to something, right? So the sound gets in that way instead. Not so much, but still plenty enough to be significant.
A properly acoustically-isolated room therefore doesn't attach to anything. The isolated room is constructed as an isolated box, with no connections to the outside on the walls or ceiling. There are separate inner-room and outer-room doors with a vestibule between, so sound can't get through the door frames. And on the floor, the box sits on some kind of sprung supports (neoprene rubber for cheaper, smaller builds, or car springs for large professional installations) which transmit as little sound from the outer-room floor to the inner-room floor as possible.