Why didn't God reveal everything about grace and salvation from the beginning?

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