The peddler adopted the name Captain von Stable in response to Edla's treatment, as she had treated him with the respect due to a captain. He explained that if he hadn't presented himself as a captain, he would have been ensnared in the metaphorical rattrap.