I don't see it that way. After God rescued the Israelites from Egypt he made a covenant or solemn agreement with them. Exodus 24:7 reports; "Then he [Moses] took the book of the covenant and read it aloud to the people. And they said: “All that Jehovah has spoken we are willing to do, and we will be obedient.”"
Jehovah informed them of the consequences for violating this covenant, and the blessings for keeping it. This is no different in principle than a modern contract, IMO, that has penalties for failing to fulfill the contract's terms. Of course, a covenant with the Creator of all things is far more serious and important than contracts with mere men, with far greater benefits and consequences than any man-made contract.
Jehovah informed them of the consequences for violating this covenant, and the blessings for keeping it. This is no different in principle than a modern contract, IMO, that has penalties for failing to fulfill the contract's terms. Of course, a covenant with the Creator of all things is far more serious and important than contracts with mere men, with far greater benefits and consequences than any man-made contract.