whats is the difference in these dimensions
Grid is distance between pads, 5 mm is just reference size for the drawing.

If you will apply 5 mm dimension size to the resistor drawing (use ruler on your monitor) you most probably get 3.5 of 5 mm dimensions between resistor's green pads.