The text is an idiomatic expression that means when an authority figure is not present, those under the supervision will take advantage of the situation. It does not exploit different meanings of a word or similar-sounding words.
When the cat is away , the mice will play .