Tire sizing is a mess. Read it and weep.
"700" or more properly "700C" is derived from an old French tire-sizing system; the number indicates the outside diameter of the tire in that system (700 mm), and the "C" indicates the width of a tire under that system (meaning "wide,"). "622" represents the bead seat diameter (or, approximately, the inside diameter of the tire) of a 700C tire, under the modern ETRTO sizing system. These days we use "700C" as the name for a size with a tenuous relationship to its original measurements (curiously, 700C has mostly survived as the name of the size for skinny road tires); "622" is more precise.
You'll see that these tires are also called 28" on that table, which is extra-fun because they're slightly smaller than 27" tires (which have become very uncommon), but have exactly the same bead-seat diameter as tires labeled 29" (used on mountain bikes).
Why the widths (38/40) aren't the same is less clear to me. Maybe the company has their own system for measuring widths that is slightly different from the ETRTO system.