Random assignments are important in experiments primarily because:
They eliminate the possibility of a lurking variable affecting the experiment.
This means that random assignment helps ensure that any differences observed between groups can be attributed to the treatment or intervention being tested, rather than to other confounding factors.