We don't know about formal democracies before Greece.  But it's development during the few generations before Pericles may suggest that it was a way of realizing some deep human needs that previous civilizations could only address in informal ways - if at all.