These stories came to being by people throughout history telling and passing down these stories. If it’s asking who write them, the author of both stories was Homer.
These tragedies are still read today because it teaches many aspects of life and nature.