By solving the math puzzles, it can be proven that the transactions (i.e. the calculation path) have been executed without errors. If the block is then mined correctly, it gets attached to the blockchain, and the first miner to solve the mathematical puzzle gets rewarded.

