Variantly: "And all the people saw": to apprise us of the exalted state of Israel. When they all stood at Mount Sinai to receive the Torah, as soon as they heard the pronouncement, they assimilated it. As it is written (Devarim 32:10) "He encircled him; he invested him (with understanding). As soon as they heard the pronouncement, they assimilated it.
When All of Israel Stood at Mount Sinai to Receive the Torah
Mekhilta Tractate Bachodesh 9:3