Top roof radical signals an indoor scene. The indexing radical, putting
寂 in the home family with
家 home,
宁 peaceful,
寒 cold. Here it gives the image of an empty room — silence under one's own roof — from which came the meaning "still, silent, lonely."