Loose material is compacted by pressure: the weight of the objects beginning to settle on top of it grows until it becomes immense that's how icebergs are formed too
Group 1 and group 7 of element group consists of alkali metal, which are generally combined with other elements in nature, so they have properties of compound