Authors write to inform, persuade, and entertain. What is the purpose of the sentence below?

sentence Anna wrote a beautiful poem for her mother's birthday.

to inform

The purpose of the sentence "Anna wrote a beautiful poem for her mother's birthday" is to inform. In this sentence, the author is sharing information about Anna's actions of writing a poem for her mother's birthday.