When you write a story, you are the author. You can choose everything that happens in the story. That's called authorial intent. Authors write lots of different thing such as letters, explanations ...