Mathematicians have come up with various rules (axioms) that seem to work pretty well. And they spend a great deal of time figuring out their consequences. But it may still happen that the rules have a contradiction and they need to come up with a different set.
Sometimes mathematicians add extra rules when they run into a roadblock. And part of the meta-game is to come up with the minimum set of extra rules they need to keep going. Sometimes they spend time figuring out if the existing rules aren't needed.