magpie and rat

We have two 'regular' magpies in our garden. On several occasions these last few days, we have seen them chasing a rat, they sit on a low wall and when they see it they jump down and run-not fly-after it. I have even seen them peering under flower pots looking for it. Does anyone know why they do this, or has anyone else seen this behaviour?

isn't wild wonderful