Why did the ancient Greeks create myths?

The ancient Greeks created myths because to explain the gods' actions.