To me, it looks like the Secretary of State had nothing to do in 1789, so the President assigned him to keeping records of legislation for the President.
Perhaps, it is time to create a new agency reporting to Congress. That agency would keep all records of all departments.