I have never kept rats because I grew up in that peculiar Alberta-shaped hole in the rat distribution map:
I probably would have had them if I grew up somewhere else. But I did have gerbils(like mini, somewhat less intelligent rats; not the hateful critters that hamsters and mice are) and I even bred them to explore their complicated colour/pattern genes. They were great pets and I loved them dearly. I produced many babies and when I rehomed them I ensured they were going to responsible owners who would care for them well; adopters had to pass a knowledge test and show me the enclosures they had set up before they could take any home(I gave them away for free though). Two guys were interested in getting breeding trios to produce snake food(gerbils are a bit larger than mice, sort of ASF size, and since we couldn't have ASFs in Alberta gerbils filled the size gap for certain snakes) One guy wanted to feed them bird seed, refused to show me the enclosures he planned to use, and even picked up a gerbil by the tail when he came to look at them! So he didn't get any from me. But the other guy came and talked to the gerbils and petted them, passed my knowledge test, and brought two very spacious cages with plenty of mental stimulation but without any major hazards for babies, so I was happy to give him a trio. Yes, their offspring would become food, but I knew they would be taken care of properly before reaching that point and I'm sure the snakes were equally well cared-for.