Rats can (and will) get anywhere they smell grain. If the coop's door is left open and there's grain inside, they will find a way. To prevent this, make sure the run is rodent-proof, and keep grain inside a secure container.