Why was he amused by this idea?
The peddler believed that the world is rattrap designed to trap people into it. As the world had never been kind to him, it gave him some kind of unwonted joy to think ill of it. Hence, he was amused by this idea as he thought about the people who were already caught in the trap and others who are circling around the bait.