They probably start with some required centers distances based on the external package requirements, the approximate ratio, and the load capability that they're after. From there, you can pick a range of base modules and widths to give your desired load capability, and then you need to work out the number of teeth you can fit on each gear to have them fit in the package and give a reduction near what you're after.