In universe-I think that when a class of ship is approved a block of registry numbers is assigned to that class. But once they run through that block of numbers if they need more ships of that class, either as replacements for lost ships or simply due to underestimating the need, said ships are simply assigned whatever number is up next. This theory accounts for both close numbers and widely varying ones.