Merged two DCIM folders by mistake
If they had the names like IMAG0001.jpg then the file from the first directory would have overwritten the second.

I have had files even on the same device have the same numbers, probably caused by me moving files around and screwing up its count.