Here's why:
* Direct objects are the nouns or pronouns that receive the action of the verb.
* In this sentence, the verb is "showed."
* The student is performing the action of showing, and the thing being shown is the poem.
Let me know if you have any other sentences you'd like to analyze!