> Since 2010, student loans are actually owned by the government
Federal student loans are owned by the government. Private student loans, of which there are many and more every day, are owned by private (generally for-profit) companies. They're also not covered by the student loan relief efforts of recent times (CARES), if I understand correctly.
Most loans issued before 2010 are guaranteed by the US government. So while they are technically unsecured, the government will cover the lender if the borrower doesn't pay.
Since 2010, student loans are actually owned by the government, that is, students are borrowing money directly from the US federal government.
So, in most cases, if a student loan were discharged in bankruptcy, it would be the federal government that would eat the cost of the loan.