The goals of Chess and Math may be different, but they follow the same principle of exploration large search space according to fixed rules. In case of Chess these are chess rules, in case of Math these rules of mathematical logic.
Memorized proof patterns have value because they lead you to a final proof.