" students who truly can't pay back their student loans should be able to have it discharged in bankruptcy court."
That is fair IF they are treated exactly like anyone else who files bankruptcy with the consequences.
I am guessing if that is enacted many will magically find a way to pay
The problem is that discharge in bankruptcy court has its problems as well. The policy reason behind not allowing it is that the federal government effectively becomes the creditor, and we typically give the government powerful credit enforcement.
Here's the other reason. Bankruptcy isn't that bad of an outcome for some people, so this could cause some truly bad behavior. For example, suppose you go to college and take out a huge student loan balance (for example, $200K). You graduate at 22 and then file for bankruptcy. Most likely you're totally broke since you haven't made any money yet, so there's nothing for your creditors to go after. Yes, it'll trash your credit. You probably won't buy a house or a new car for ten years, but $200K of debt is gone. Is that a good deal? Honestly, for a lot of people, it probably is.