It reaches the maximum number and then resets. That’s what happened. You can set up to do a sequence per folder but the default out the box is to create a sequence that runs until it resets at the maximum number. I seem to remember my Canons did the same.
I thought of that, but with 5 digits to work with, shouldn't it go from 09999 to 10000?