This is how payday advances worked for most people before the age of complex payroll systems. You used to be able to ask your boss to get payed early for the time you had already worked. Now that is really hard because "the system isn't set up like that"
You can find out more by googling it.
Payday loans are much more akin to debt bondage, in that they are _often_ the start of a debt cycle that is extremely difficult to break.
No, it's really hard because systems (technology secondarily, primarily policy and administrative controls) are set up to prevent the discretion that practice relied on because it was a giant and frequently exploited opportunity for embezzlement, favoritism, and unlawful discrimination (including quid pro quo sexual harassment) by line and middle managers.
It's not just an incidentally unsupported function.
Sure, but it's not free to the employer (aside from making cash flow timing less predictable, regulating and monitoring are not free) and the contribution to the bottom line is dubious (it may even be negative: the employees for whom such a benefit would be most attractive may not be the employees a business most wants), so the business case for doing it rather than leaving employees to existing credit mechanisms is weak.
OTOH, there seems an obvious social benefit to having either this or same-day pay (which is also not free compared to status quo alternatives) as a norm, so that's maybe a role for government rules (either mandates or incentives.)
People are working on this from a tech perspective, but we are not there yet. In other countries this would be a lot easier to implement because the underlying banking infra is just more sophisticated and modern.
Sounds like debt bondage.