We will take an example.
"Halt, halt" the robber cried
"And hand me out your riches".
"I can't, I can't" the man replied
"For I'm holding up my britches."
If you took out "britches" and put in "pants" it wouldn't be funny at all. Rhyme creates the magic.