Rat catchers caught rats. They were hired when the rat populations were large enough to be destructive, to reduce their numbers.
The medieval story of the Pied Piper has a rat catcher as its main character.
Rat catchers usually killed the rats, but in some cases may have sold them live to be used in a blood sport called rat baiting. In some parts of the world, rat catchers still work today.