"The problems ancient civilizations had that called for the invention of writing? "
*
Short memories!
In the "olden times" before writing was known as it is today - tribal members were often selected to "remember" or put into song the past history. Our history became to long to just "remember" and some enterprising individuals created a written language.