The text is an old proverb suggesting that even someone of low status has certain rights, in this case, to look at a person of high status. It does not play on different meanings of a word or similar-sounding words for humorous effect.
A cat may look at a king .