ELI5: Why can’t judge Moore say that if he’s found guilty of the charges and he gets elected to the Senate that he will resign?

He’s still innocent until proven guilty. This really smells like a witch hunt.