Why does the iPhone compass need to circle around before opening it?

Have you ever played Compass?

The compass is suspended. When you pick up a compass that has not been used for a long time, its pointing may be deviated. If you turn the entire compass, it is equivalent to the so-called eight-character turn. The floating pointer will shake. After it stabilizes, It will point accurately. Iphone's is equivalent. That's the truth.