There’s a typo in the specs. The large and extra large both show the same waist measurement. I’m sure the large is supposed to be 36-38" and not 40-42" as is the XL.
Also, it’s kind of weird that the specs also show chest and arm measurements for boxer briefs, but to each their own.