Because it is a photo kiosk for taking passport photos.
Because otherwise, it would work just fine without this enforcement functionality.
The point of passport photo services is to mimic (or try to) the official government photo reviewers criteria. That's the value it provides. Learning that you will be rejected quickly rather than slowly.