This poem is a limerick, or a funny, short poem. A limerick has a rhyme scheme of aabba, meaning that the first two lines rhyme with the last line and the 3rd and 4th line rhyme.
There once was a ram goat named Stu
Who wanted to go to Peru
He got to the train
But all was in vain
Because everyone said, "Pee-Yew!"