Athens had an internal dispute bordering on civil war between its different classes of people - essentially against the ruling aristocracy.
The tyrants were brought in by popular acclaim to establish a government which looked after all citizens, not just the interests of a few.