He wouldn’t have quit if the rule hadn’t been broken.
According to this article, he quit because of pressure from the media.