Why does a photo kiosk enforce passport photo requirements?
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.