Scanned documents are not consistently sharp across their surface. This is related to depth of field and that's especially visible when scanning documents with an angle. Factors that contribute to a low depth of field include:
- short distance to subject
- high focal length
- wide aperture (low F-number)
- large sensor size
Sensor size is fixed and aperture is fixed on most smartphone cameras.
Maybe the app could try to select the best camera/lens rather than taking the default one.