(Capcom's primary storyline)

Rats (genus Rattus) living in the sewers of Raccoon City were the original carriers of the t-Virus that caused the Raccoon City Destruction Incident - as opposed to the leeches, which caused the outbreak in the Arklay Mountains. The only known example of an attack on a human was on an injured U.S.S. member seen in the introductory movie to Resident Evil Outbreak.
According to the BIOHAZARD 2 Official Guide Book, the rats in the sewers grew significantly from the t-Virus, but were killed-off by their enemies, the Giant Roaches.
Non-infected rats appear in various locations in Resident Evil 5 and can be killed by the player. They also appear in Resident Evil 6 and Resident Evil: Revelations 2 and can also be killed by the player, in the latter case, killing rats is one of the requirements for a medal in Episode 4.
In Resident Evil 4 (2023), Rats appear in various places such as the Abandoned Factory, Dining Hall and Waste Disposal. Rats can be kill to fulfill side mission requested by the Merchant such as; Pest Control, More Pest Control and Even More Pest Control. Upon completion, the Merchant will give Spinels as rewards.
Gallery
Sources