Origin of Haloes