>>12589659The same reason the planets orbit.
You know how when you are spinning in your office chair and you bring your legs in you start spinning faster? The same principle applies to proto-solar systems. As gravity draws the material closer together, the very small amount of angular velocity that the large cloud of debris has will become magnified as it solidifies.