There was a young rustic named Mallory,
who drew but a very small salary.
When he went to the show,
his purse made him go
to a seat in the uppermost gallery.
Can you explain to me the point of this limerick? Are the three last lines meant literally or figuratively? I am not able recognize the comic effect except some vague sort of paradox.