The wheel size is configured so that the circumference is a known quantity, wihch lets the computer know how far you travelled in each revolution of the wheel and how long it takes per revolution.
It doesn't matter where the magnet is so long as it passes the sensor once per revolution.