If these potential wells and all the matter falling into them had all been perfectly spherically symmetric (that is, symmetric along any axis) then there would be no spin. Clumps of dark matter formed first, and acted as “seeds” for the formation of structures, providing gravitational potential wells that pulled in atoms of normal matter.