Earlier quoted context omitted.
One could go farther and complain that it's a waste of a microcontroller at all to control a fan when an analog circuit for fan speed vs temperature would work fine.
True, a very simple analog circuit would be enough. However the bane of analog circuits was that they age, so a control circuit that works perfectly today will drift and no longer work as intended after some years. The second problem is that analog circuits need adjustments to set them at the exact desired parameters. Adjustments can be done either by using an adjustable element in the circuit, e.g. an adjustable res…
I worked at a shop that had an old closed loop water-air chiller for a laser. The water temperature controller was a small PCB with an op-amp chip with some passives and the temperature was set by a potentiometer. That thing ran fine until the compressor died and it sent to scrap.