Earlier quoted context omitted.
Assuming you’re not talking about a loan to do this (at which point you’ve reinvented indentured servitude), back when there was a smaller pool of college graduates it was easier to find a company that would pay for your education, some even offering bonuses if you completed it.
Not sure I understand: why would a loan be indentured servitude if it funds an education (not binding employment etc.)?
I don't think anyone is stopping the private sector from extending "student loans" if they were such a good business.