
The parts inside a microwave can get warm while the oven cooks. A cooling fan can move air past those parts and out through openings in the case. On some models the fan runs a little longer, even after the microwave source has switched off.
Why do some fans run longer than others?
One control can run a fan for a set time. Another may respond to a temperature sensor. A long cooking cycle or a warm kitchen can leave the equipment hotter at the end. The exact behavior depends on the model.
Is it the same as the fan above the stove?
An over-the-range microwave can have a separate fan to move air from the cooktop below. That fan may run because of heat at the stove. The cooling fan has the different job of moving air through the microwave itself.
For more on how electrical equipment makes and gets rid of heat, see Basics of Electric Utilities 101.