Both the simile and the metaphor talk about silence. In the simile, Anne describes having to be silent to avoid unwanted attention that would lead to her and her family being discovered. In the metaphor, Anne can only hear the silence from the outside world that surrounds the attic/house.