Think of it more like gambling for credibility. Theft is still wrong during Ramadan, but if I know that everyone convicted of petty theft will be pardoned in a month, do I impose the standard sentence? If I do, it's spiteful judge vs. generous executive. If I give a light sentence, I steal the march on the pardon and get to be the benevolent judge.