Math functions are built in tools that handle common mathematical operations your program would otherwise need to calculate manually. Rather than writing your own logic to round a number down, find the absolute value, or constrain a value within a range, every language provides a standard math library that does the heavy lifting for you.
In general programming these come up when working with measurements, currency, statistics, and data processing. In game development they become essential almost immediately — clamping a player's health between 0 and 100, calculating distances between objects, rounding pixel positions, normalising values for smooth movement, and handling angles all rely on math functions constantly.
Most languages share the same core set of functions under the hood, the main differences are just in syntax and where they live — some are methods on a math object, others are standalone global functions.