Have you ever flushed your radiator/coolant system?
Reduced cooling system performance because the radiator is clogged.
At idle, with less air moving through the radiator, the nonclogged parts can't perform well. This causes everything to heat up, and eventually boil (over 220 degrees because the cooling system is pressurized), and as the coolant turns into steam, the sensor that turns your fan on can't measure that temp (shutting your fan off), where the sensor that sends to your gauge keeps working.
Just a suggestion.