Not for God's information, but for the people's greater obligation, and to learn what answer he should return from God to them.
Related Commentaries of Exodus 19:8
Exodus 19:8
8 And all the people answered together, and said, All that the LORD hath spoken we will do. And Moses returned the words of the people unto the LORD.