Chess has rules, so does mathematics.
You can’t move a pawn backward, you must not divide by zero.
Chess without rules is no game at all, numbers without definite properties are worthless curiosities.
A good chess player and a good mathematician play by the rules.