Rats will appear in your bunker from time to time and eat small amounts of your food. A cat is the most proficient way to get rid of them but rat traps are also viable for later game players who have the resources. The best way to prevent rats is to clean your bunker regularly. The dirtier your bunker is the more frequent rats will spawn. The more people in your bunker the faster your bunker gets dirty.