If a really smart poor person wants to become a really smart rich person by pursuing a degree in film studies, it's reasonable (in my opinion) for a bank to say "borrowers whose only education is a bachelors in film studies tend to have trouble paying back loans, so we won't lend you very much".
If that very smart poor person is pursuing a degree in accounting or engineering, though, most banks can do the actuarial work to determine that the likelihood of payment is pretty good.
This all seems totally fine and fair to me. And if the really smart person does have trouble paying back their loan, bankruptcy can be the absolute last option they resort to, just as it is with most other loans.