This is a mechanism to make sure that the layers can be requested with a unique identifier. By using the layer order, there will be no duplicate layer numbers, and no chance for confusion, since it is possible to publish a map that has multiple layers with the same name. In ArcGIS 10, there will be an option available to use the layer name if there are no duplicate names.