Origin of rare gases in the Earth