There are at least 2 things working against a good focus near the edge of the picture:
1. For most lens designs, the focus near the edge of the field-of-view is "softer", that is, not as good. This is especially pronounced in lower light levels when the aperture is close to wide open.
2. When...