What dxqcanada said...stopping the len s down increases Depth of Field, and that increases the zone of acceptable shaprness, especially on close-range shots!
On today's high-megapixel sensors, the ability of a lens to render fine, fine details is actually often limited by diffraction in the f/4 range, and a great lens (like say a 200 f/2 from Canon or Nikon) might actually be "sharper" at f/4 than at f/6.3, due to diffraction effects at f/4.8 or smaller sized lemns openings, at least on something like a flat resolution target, or a star target,etc..
In the real world, MANY photos look 'sharper', or 'clearer', or just better, when the lens is set in the f/6.3 to f/7.1 to f/8 range of apertures, because those smallish f/stop openings give more in-focus subject matter. Sharpness is a confusing term, hard to define, and it is part resolution ability, contrast, microcontrast, and also, the depth of field that the f/stop delivers. On close-range shots, LACK of in-focus stuff makes pictures appear "unsharp". Many,many times on very close-range shots, it is actuallty best to close the lens down to the f/13, f/16, or even into the f/22 range, to get more IN-FOCUS---even though those tiny apertures cause diffraction, diffraction is less-objectionable than showing stuff that is clearly OUT of the focus band of the depth of field!
I sold a camera a few years back: I took a bunch of studio-flash-lighted sales shots of the camera and lens: the best pictures were the ones shot at f/16....even though my Tamron 90mm AF-SP macro lens is "sharpest" at f/4.8 or so...test-chart sharpness is different from real-world scene sharpness!