No it is not! I was appalled years later to learn that government-backed loans were being given at such high rates. It just seems cruel. The government has no obligation to turn a profit on student debt.
If you're in the US, the government isn't really profiting on school debt. The government guarantees the debt, but that is a play to protect the banks rather than to drum up profits. Profits really don't matter to a government that can print any money it needs but doesn't currently have.
Depends on when you went and whether your loans were federally backed. 9% for recent students is possible but pretty high; federal undergraduate loans in the past 10 years have been ~3-5%. (Private loans can have much higher rates but represent a relatively small fraction of loans and loan balances. [1])