These pins are often required to ensure your cam gear and pinion gear are properly matched to one another and don't fit too loose or too tight.
Pinion gears are available in different color codes, and using this set of gage pins to measure your cam gear will then ensure you select the correct pinion gear.