Plumbing is everywhere on the outside of a house, and the gap around a pipe is often the weakest point in the wall.
A pipe is routed through a wall, the hole is drilled a little large and the gap is left open or filled with soft material. Later work can disturb a good seal, and old pipes that were removed leave open sleeves.
The gap is packed with hard filler, or a metal collar and mesh are fitted, then finished so it stays put. Foam alone is not enough, because rats chew it away.
The same opening is often visible under a sink or behind a cupboard. Fixing it from both sides is the most reliable approach.
Yes. Rats can enlarge a small gap quickly.
Yes. Check where they worked before they leave if you can.
Tell us what you're seeing and where, and we'll get back to you with a clear price.