Most likely the engine needs "de-carbonating" basically carbon builds up which acts as a "hot spot", so when the engine is turned off it over-run's.
It's a head off job.
There are other reasons but this is the most likely.
In the days when your car was new this was common practice, but fortunately fuels have improved nowadays, so it's not so much of an issue.
Martin