Considering how much more expensive food used to be, allowing pests to run rampant and get into the food stores seems unlikely. Although, I believe they were more likely to rely on dogs to kill rats.
Also possible they wanted to reduce the number of small animal carcasses to clean up, whether from the doorstep or interior of the home. Cats love to bring these as gifts to their keepers.