God's revelation is progressive, and He did not reveal the doctrines of grace until after the period of the law.
Watch the Teaching: What the Bible Really Says About Law vs Grace Explained