Looking in Exodus at the sequence of events by which God took Israel away from Egypt and brought them to Mt Sinai, it becomes clear that, having once freed them, He did not want them again to descend into slavery. Thus we can regard Shabbat and the Torah as His prescription for their continued liberty and prosperity.