"Agnostic" is a much more recent word than "atheist", coined by Thomas Huxley in 1869 to mean "without knowledge of God" and acquiring the usage of "being doubtful about the existence of God."
Jim Herrick (1985). “Against the Faith: Essays on Deists, Skeptics, and Atheists”