I think the reason bankruptcy doesn't apply is so that lenders are more willing to give out student loans (which is good, more educated society, more opportunities) and also so they lend them out at a lower rate.
Without this, banks might require very good credit to give out loans (hard for young students to acquire).